private void Application_Startup (object sender, StartupEventArgs e) { StartUpWindow MainWindow = new StartUpWindow (); MainWindow.ApplicationArguments = new List<string> (); FunctionSelectionWindow FunctionSelection = new FunctionSelectionWindow (MainWindow.ApplicationArguments); if (FunctionSelection.ShowDialog () == false) { Shutdown (); return; } //MainWindow.ApplicationArguments.Add ("E:\\Temp\\NetzwerkProblem\\VideoPlayer_Central_WPMediaProgramm.ser"); //foreach (String Argument in e.Args) // { // MainWindow.ApplicationArguments.Add (Argument.Trim ()); // } MainWindow.Show (); }
void ProcessSerFileDisplay (String FileName) { DataBaseUtility.StartUpWindow ProgrammDataWindow = new StartUpWindow(); ProgrammDataWindow.ApplicationArguments = new List<String> () {"WPMediaProgramm"}; ProgrammDataWindow.ProgrammManagement = new ManagedProgrammManagement (); ProgrammDataWindow.ProgrammManagement.LoadProgrammData (FileName); ProgrammDataWindow.CloseRequestedCall += new CloseRequested (ProgrammDataWindow_CloseRequestedCall); ProgrammDataWindow.ShowDialog (); }