示例#1
0
文件: App.xaml.cs 项目: heinzsack/DEV
		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 ();
			}
示例#2
0
		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 ();
			}