using FLY.Thick.Base.UI;
using FLY.Thick.Blowing.IService;
using FLY.Thick.Blowing.UI;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Unity;
using PgFlyAd = FLY.Thick.Blowing.UI.PgFlyAd;
namespace FLY.Thick.Blowing360.UI
{
///
/// Page_Menu.xaml 的交互逻辑
///
public partial class PgMenu : Page
{
IBlowingService blowingService;
IUnityContainer container;
public PgMenu()
{
InitializeComponent();
}
[InjectionMethod]
public void Init(IUnityContainer container,
IBlowingService blowingService)
{
this.container = container;
this.blowingService = blowingService;
}
private void button_curve_Click(object sender, RoutedEventArgs e)
{
PgCurve p = new PgCurve();
container.BuildUp(p);
NavigationService.Navigate(p);
}
private void button_warning_Click(object sender, RoutedEventArgs e)
{
PgErrorTable p = new PgErrorTable();
container.BuildUp(p);
NavigationService.Navigate(p);
}
private void button_flyad_Click(object sender, RoutedEventArgs e)
{
PgFlyAd p = new PgFlyAd();
container.BuildUp(p);
NavigationService.Navigate(p);
}
private void button_version_Click(object sender, RoutedEventArgs e)
{
//System.Diagnostics.Process.Start(@"版本说明.txt");
}
private void button_instruction_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start(@"测厚仪说明书.pdf");
}
private void button_blowing_Click(object sender, RoutedEventArgs e)
{
var p = container.Resolve();
NavigationService.Navigate(p);
}
private void button_scanwarning_Click(object sender, RoutedEventArgs e)
{
PgScanWarning p = new PgScanWarning();
container.BuildUp(p);
NavigationService.Navigate(p);
}
}
}