示例#1
0
 public RecordBox(KBM360 controlConfig)
 {
     this.controlConfig = controlConfig;
     InitializeComponent();
     openPresets.Filter = Resources.TextDocs + "|*.txt";
     savePresets.Filter = Resources.TextDocs + "|*.txt";
     if (controlConfig != null)
     {
         cBStyle.SelectedIndex = this.controlConfig.MacroRepeat ? 1 : 0;
     }
     AddtoDS4List();
     ds4.Tick += ds4_Tick;
     ds4.Interval = 1;
     if (this.controlConfig.MacroTags.Count > 0)
     {
         macros.AddRange(this.controlConfig.MacroTags);
         LoadMacro();
         Saved = true;
     }
 }
示例#2
0
		private void Show_ControlsBn(object sender, EventArgs e)
		{
			KBM360 kbm360 = new KBM360(Device, this, (Button)sender) { Icon = Icon };
			kbm360.ShowDialog();
		}