Ejemplo n.º 1
0
 public settings_tab()
 {
     evt_cancel_settings_tab = new MarkerEvent1();
     evt_apply_settings = new MarkerEvent1();
     program_settings = new ProgramSettings();
     pattern = new Template();
     tdb = new tassDB();
     InitializeComponent();
 }
Ejemplo n.º 2
0
 public measuring_tab(Dispatcher disp)
 {
     plotter_cntrl = new PlotterControl(disp);
     tdb = new tassDB();
     InitializeComponent();
     evt_cancel = new MarkerEvent1();
     evt_start_analyse = new MarkerEvent1();
     evt_CloseTab = new MarkerEvent1();
     evt_measuring_draw = new MarkerEvent1();
     evt_measuring_done = new MarkerEvent1();
     excelData = new Excel_Interface();
     print_obj = new print();
 }
Ejemplo n.º 3
0
        public calculating_tab(Dispatcher disp)
        {
            plotter_cntrl = new PlotterControl(disp);
            InitializeComponent();

            evtT = new MarkerEvent1();
            evtT1 = new MarkerEvent1();
            evt_CloseTab = new MarkerEvent1();
            evt_auto_calculate = new MarkerEvent1();
            tdb = new tassDB();
            excelData = new Excel_Interface();
            calculation_op = new Calculations();
            print_obj = new print();
        }
Ejemplo n.º 4
0
        public MainWindow()
        {
            try
            {
                InitializeComponent();
                //SplashScreen splashScreen = new SplashScreen("logo.bmp");
                //splashScreen.Show(true);

                InitializeCOMInterface();

                create_training_tab(out tr_tab);
                create_tarirovka_tab(out tar_tab);
                create_calc_tab(out calc_tab);
                create_setings_tab(out set_tab);
                create_measuring_tab(out meas_tab);

                main_pg = new main_page();
                main_pg.evt_tarirovka_click.someEvent += new _MarkerEventHandler(tarirovka_click);
                main_pg.evt_Training_Click.someEvent += new _MarkerEventHandler(Training_Click);
                main_pg.evt_draw_calc_choise.someEvent += new _MarkerEventHandler(draw_calc_choise);
                main_pg.evt_Measuring_Click.someEvent += new _MarkerEventHandler(Measuring_Click);

                tdb = new tassDB();
                program_settings = new ProgramSettings();
                SetParametersFromSettings(tdb.get_default_settings());
                device = new DeviceTune();
                pattern = new Template();
                //Прорисовка главного меню
                MainMenuDraw();
                // прорисовка заставки
                //TimeSpan timeSp = new TimeSpan(0, 0, 3);
                //splashScreen.Close(timeSp);
                //Thread.Sleep(1000);
            }
            catch (Exception fail)
            {
                String error = "The following error has occurred:\n\n";
                error += fail.Message.ToString() + "\n\n";
                MessageBox.Show(error);
            }
        }