private void MainWindow_Loaded(object sender, RoutedEventArgs e) { Core.SetWnd(this); CuelistCtrl.Init(); FollowCtrl.Init(); GoCtrl.Init(); LogCtrl.Init(); LogCtrl.Status("CueController 3.43b"); MidiController.Init(); MidiInputCtrl.Init(); MidiOutputCtrl.Init(); PbCtrl.Init(); BeamerlistCtrl.Init(); RecentFilesCtrl.Init(); ReadWriteCtrl.Init(); MatrixCtrl.Init(); ScriptlistCtrl.Init(); CopyCutCtrl.Init(); OscCtrl.Init(); OscListCtrl.Init(); string[] args = Environment.GetCommandLineArgs(); if (args.Length >= 2) { ReadWriteCtrl.Read(args[1]); } }