コード例 #1
0
        private void MenuItem_Click_Serial_Start(object sender, RoutedEventArgs e)
        {
            ClsComSettingMain clsComSettingMain = new ClsComSettingMain();

            clsComSettingMain.comport = libs.clsComSettings.strSelectCom;
            clsComSettingMain.baudRate = libs.clsComSettings.strSelectedBaud;

            if (libs.clsComSettings.strSelectCom == "" || libs.clsComSettings.strSelectedBaud == 0)
            {
                //when serial settings are not set, bring configuration dialog up.
                Window wdwSetupCom = new Setup_Window.SetupCom();
                wdwSetupCom.Show();
            }
            else
            {
                if (!workerGetAdvData.IsBusy)
                {
                    workerGetAdvData.RunWorkerAsync(clsComSettingMain);
                }
            }
        }
コード例 #2
0
 private void MenuItem_Click_Communication(object sender, RoutedEventArgs e)
 {
     Window wdwSetupCom = new Setup_Window.SetupCom();
     wdwSetupCom.Show();
 }