Пример #1
0
		public void CloseThisWindow (PresenterRuntime EntryToClose)
			{
			EntryToClose.StartedPresentationWindow.Close();
			EntryToClose.StartedPresentationWindow = null;
			PresenterRuntimes.Remove(EntryToClose);
			SendPropertyChanged("PresenterRuntimes");
			}
Пример #2
0
		public void StartNewWindow (String MaschinenName = "")
			{
			PresenterRuntime NewWindow = new PresenterRuntime ();
			NewWindow.StartedPresentationWindow = new WienerLinienPresenterWindow() { MaschinenName = MaschinenName};
			NewWindow.MaschinenName = MaschinenName;
			NewWindow.Parent = this;
			NewWindow.StartedPresentationWindow.Tag = NewWindow;
			NewWindow.StartedPresentationWindow.Closing += StartedPresentationWindow_Closing;
			NewWindow.WindowHeadLine = MaschinenName + " - Gestarted-" + DateTime.Now.ToString ("hh:mm:ss");
			NewWindow.StartedPresentationWindow.Title = NewWindow.WindowHeadLine;
			NewWindow.StartedPresentationWindow.Show ();
			PresenterRuntimes.Add(NewWindow);
			SendPropertyChanged("PresenterRuntimes");
			}