예제 #1
0
        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();
        }
예제 #2
0
 private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     mapper.ResetColors();
     MidiUninit();
 }