static void Main(string[] args) { MainWindow Window = new MainWindow(); MyoSoundControl Controller = new MyoSoundControl(Window); Controller.Run(); Application.EnableVisualStyles(); Application.Run(Window); Application.ApplicationExit += Controller.Quit; }
static void Main(string[] args) { MainWindow Window = new MainWindow(); //Forms intialisieren MyoSoundControl Controller = new MyoSoundControl(Window); //objekt der Klasse Myosoundcontrol Controller.Run(); Application.EnableVisualStyles(); //zugriff auf steuerelemente, farben etc. aus der Forms (Windows) Application.Run(Window); Application.ApplicationExit += Controller.Quit; }