private void ShowGXSetup(SetupDialogType type) { Dictionary <string, SettingPair> tempSettings = GetOptionConfigTable(); if (tempSettings.Count == 0) { return; } GXSetup setupFrm = new GXSetup(type); setupFrm.ConfigTable = tempSettings; setupFrm.ShowDialog(); }
private void button2_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"; //GXSetup setupFrm = new GXSetup(SetupDialogType.ADMIN_PB); //GXSetup setupFrm = new GXSetup(SetupDialogType.PB); GXSetup setupFrm = new GXSetup(SetupDialogType.QF); Dictionary <string, SettingPair> tempSettings = new Dictionary <string, SettingPair>(); tempSettings.Add("三轮取反", sp1); tempSettings.Add("二轮取反", sp2); setupFrm.ConfigTable = tempSettings; setupFrm.Show(); }