PgMenu.xaml.cs 3.43 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
using FLY.Thick.Base.UI;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Unity;

namespace FLY.Thick.FilmCasting.UI
{
    /// <summary>
    /// PgMenu.xaml 的交互逻辑
    /// </summary>
    public partial class PgMenu : Page
    {
        IUnityContainer container;
        public PgMenu()
        {
            InitializeComponent();

        }
        [InjectionMethod]
        public void Init(IUnityContainer container)
        {
            this.container = container;
        }


        private void button_grid_Click(object sender, RoutedEventArgs e)
        {
            PgGrid p = new PgGrid();
            container.BuildUp(p);
            NavigationService.Navigate(p);
        }

        private void button_initparam_Click(object sender, RoutedEventArgs e)
        {
            PgInitparam p = new PgInitparam();
            container.BuildUp(p);
            NavigationService.Navigate(p);
        }

        private void button_getsample_Click(object sender, RoutedEventArgs e)
        {
            PgGetSample p = new PgGetSample();
            container.BuildUp(p);
            NavigationService.Navigate(p);
        }

        private void button_bordersearch_Click(object sender, RoutedEventArgs e)
        {
            PgBorderSearch p = new PgBorderSearch();
            container.BuildUp(p);
            NavigationService.Navigate(p);
        }

        private void button_curve_Click(object sender, RoutedEventArgs e)
        {
            PgCurve p = new PgCurve();
            container.BuildUp(p);
            NavigationService.Navigate(p);
        }

        private void button_scancorr_Click(object sender, RoutedEventArgs e)
        {
            PgScanCorr p = new PgScanCorr();
            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_gageinfo_Click(object sender, RoutedEventArgs e)
        {
            PgGageInfo p = new PgGageInfo();
            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_scanwarning_Click(object sender, RoutedEventArgs e)
        {
            PgScanWarning p = new PgScanWarning();
            container.BuildUp(p);
            NavigationService.Navigate(p);
        }

        private void btnBoltmapClick(object sender, RoutedEventArgs e)
        {
            PgBoltMap p = new PgBoltMap();
            container.BuildUp(p);
            NavigationService.Navigate(p);
        }

        private void button_reject_Click(object sender, RoutedEventArgs e)
        {
            PgReject p = new PgReject();
            container.BuildUp(p);
            NavigationService.Navigate(p);
        }
    }
}