コード例 #1
0
        private void btnItemSigTest_Click(object sender, EventArgs e)
        {
            Dictionary <string, SettingPair> tempSettings = GetOptionConfigTable();

            if (tempSettings.Count == 0)
            {
                return;
            }

            AssemblyInfoPair monInfo = AssemblyInfoFactory.GetAssemblyInfo(appconfig.Options.Monitor.ClsFilePath, appconfig.Options.Monitor.ClsName);

            GXTest testFrm = new GXTest(tempSettings, monInfo);

            testFrm.ShowDialog();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: wpmyj/Zhuangkao
        private void button3_Click(object sender, EventArgs e)
        {
            SettingPair sp1 = new SettingPair();

            sp1.ImplementClass = new MotorSignalSettings().GetType();
            sp1.FilePath       = "3WheelMotorSignal.config";

            SettingPair sp2 = new SettingPair();

            sp2.ImplementClass = new MotorSignalSettings().GetType();
            sp2.FilePath       = "MotorSignal.config";

            Dictionary <string, SettingPair> tempSettings = new Dictionary <string, SettingPair>();

            tempSettings.Add("三轮", sp1);
            tempSettings.Add("二轮", sp2);
            AssemblyInfoPair monInfo = AssemblyInfoFactory.GetAssemblyInfo(typeof(Cn.Youdundianzi.Share.Signal.Motor.MotorMonitor));
            GXTest           testFrm = new GXTest(tempSettings, monInfo);

            testFrm.Show();
        }