private void Window_Loaded (object sender, RoutedEventArgs e) { ShowSchedulingOrPictures = false; mmUnitEntriesModellInstance = new MMUnitEntriesModell(); mmUnitEntriesModellInstance.ActuallUsageMode = MMUnitEntriesModell.UsageMode.AllForOneTyp; mmUnitEntriesModellInstance.DoStartup(); ActualizingStatusViewUIInstance.RunCheck(ListOfAddOnDataToReProcessInstance, ListOfLastAddOnDataToReProcessInstance); }
private void ShowDBStandBild_OnClick(object sender, RoutedEventArgs e) { CommonSearchClass SearchClass = ((sender as FrameworkElement).DataContext as CommonSearchClass); CsWindow StandBildElementeWindow = new CsWindow(); //CsGlobal.Wpf.Storage.Window.Handle(StandBildElementeWindow, "StandBildElementeWindow"); MMUnitsViewer mmUnitsViewerControl = new MMUnitsViewer(); MMUnitEntriesModell mmUnitEntriesModellInstance = new MMUnitEntriesModell(); mmUnitEntriesModellInstance.ActuallUsageMode = MMUnitEntriesModell.UsageMode.AllForOneInformation; mmUnitsViewerControl.mmUnitEntriesModellInstance = mmUnitEntriesModellInstance; StandBildElementeWindow.Content = mmUnitsViewerControl; mmUnitEntriesModellInstance.DoStartup(StandBildElementeWindow, SearchClass.InformationenConnectedEntry.ID); StandBildElementeWindow.Width = 700; StandBildElementeWindow.Height = 600; StandBildElementeWindow.ShowDialog(); }
private void ScheduledPage_OnClick(object sender, RoutedEventArgs e) { PageSchedule pageSchedule = (sender as MenuItem).DataContext as PageSchedule; if (pageSchedule == null) return; CsWindow standBildElementeWindow = new CsWindow(); //CsGlobal.Wpf.Storage.Window.Handle(StandBildElementeWindow, "StandBildElementeWindow"); MMUnitsViewer mmUnitsViewerControl = new MMUnitsViewer(); MMUnitEntriesModell mmUnitEntriesModellInstance = new MMUnitEntriesModell(); mmUnitEntriesModellInstance.ActuallUsageMode = MMUnitEntriesModell.UsageMode.AllForOneInformation; mmUnitsViewerControl.mmUnitEntriesModellInstance = mmUnitEntriesModellInstance; standBildElementeWindow.Content = mmUnitsViewerControl; Guid mmUnitId = pageSchedule.Page.PageGroupId; MMUnit mmUnit = Data.DbServer3.MultiMedia.MMUnits.LoadThenFind(mmUnitId); mmUnitEntriesModellInstance.DoStartup(standBildElementeWindow, (Guid)mmUnit.MMInformationenId); standBildElementeWindow.Width = 700; standBildElementeWindow.Height = 600; standBildElementeWindow.ShowDialog(); }