Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            LoadMachineSettings();
            SamlightForm smFrm = new SamlightForm();

            SLMgr = new SamLightClass(smFrm.GetControl());
            mySet = new SettingsMenu(this);
            mySet.GetSaveBtnControl().MouseDown += SettingSaveBtn_MouseDown;
            myPaintCtrl = new PaintControl(SLMgr);
            UpdateLanguage();
            UpdateUIColor();
            if (Para.AutoStartSamlightSW)
            {
                string exeString = Para.SamlightAppPath;//@"D:\scaps\samlight\sam_light.exe";
                if (!Helper.IsProcessOpen("sam_light"))
                {
                    Process.Start(exeString);
                    //using (Process exeProcess = Process.Start(exeString))
                    //{
                    //    exeProcess.WaitForExit();
                    //}
                }
            }
            SLMgr.HideSamlightWindow();

            //SLMgr.Get_Output(5);
            //SLMgr.Get_Output(0);
            //SLMgr.Get_Output(1);
            //SLMgr.Get_Output(2);
            //SLMgr.Get_Output(3);
            //SLMgr.Get_Output(4);

            VersionLbl.Content = Para.SWVersion;
        }