示例#1
0
文件: Pager.cs 项目: dada/theresa
 public void Add(int id, ControllerConfig cfg, int value, int value2)
 {
     ControllerState s = new ControllerState();
       cfg.CopyTo(s.Config);
       s.Value = value;
       s.Value2 = value2;
       _Config.Add(id, s);
 }
示例#2
0
文件: Client.cs 项目: dada/theresa
 private void OnControlConfigure(object sender, EventArgs e)
 {
     IMidiController control = (IMidiController) sender;
       if(_ControllerConfigScreen == null) _ControllerConfigScreen = new ControllerConfigScreen(CurrentSkin);
       ControllerConfig cfg = new ControllerConfig();
       control.Config.CopyTo(cfg);
       _ControllerConfigScreen.Config = cfg;
       DialogResult r = _ControllerConfigScreen.ShowDialog();
       if(r == DialogResult.OK) {
     cfg.CopyTo(control.Config);
       }
 }