public Mate(HidDevice d, MidiDevice md, MidiControl mc, MidiChannel mchan) { mateManager = new MateManager(); mateManager.OpenDevice(d); mateManager.ButtonDown += new EventHandler<PowerMateEventArgs>(ButtonDown); mateManager.ButtonUp += new EventHandler<PowerMateEventArgs>(ButtonUp); Dark(); counter++; id = counter; Name = "Powermate " + id; SelectedDevice = md; SelectedControl = mc; SelectedChannel = mchan; }
public Mate(HidDevice d, MidiDevice md, MidiControl mc, MidiChannel mchan) { mateManager = new MateManager(); mateManager.OpenDevice(d); mateManager.ButtonDown += new EventHandler <PowerMateEventArgs>(ButtonDown); mateManager.ButtonUp += new EventHandler <PowerMateEventArgs>(ButtonUp); Dark(); counter++; id = counter; Name = "Powermate " + id; SelectedDevice = md; SelectedControl = mc; SelectedChannel = mchan; }