public Form1() { InitializeComponent(); mapper = new Mapper.Mapper(); Mapper.Mapper.NotificationIcon = notificationIcon; UpdateProcessList(); Draw(); // TODO: Rework Interface-update routine (seperate each process and device to be able to structurally and cosmetically update itself) Console.WriteLine("Done!"); MidiInit(); mapper.SetDeviceInterface(deviceinterface); mapper.SetMappingMidi(); mapper.ResetColors(); }
private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e) { mapper.ResetColors(); MidiUninit(); }