public void CommonProcessingRequired(CommonSearchClassList commonSearchClassList, CommonSearchClassList.RequiredProcessing requiredProcessing) { switch (requiredProcessing) { case CommonSearchClassList.RequiredProcessing.DisplaySelectedInformation: InformationenPresentationModell informationenPresentationModellInstance = new InformationenPresentationModell() { InformationToProcess = commonSearchClassList .SelectedWorkListEntry.InformationenConnectedEntry }; informationenPresentationModellInstance.FillAllForInformationEntry(); InformationenPresentationModellInstance = informationenPresentationModellInstance; break; case CommonSearchClassList.RequiredProcessing.ModifySelectedInformation: break; case CommonSearchClassList.RequiredProcessing.CreateNewInformation: CommonSearchClassListInstance = commonSearchClassList; InformationenBearbeitungModellInstance = new InformationenBearbeitungModell() { CommonSearchClassListInstance = this.CommonSearchClassListInstance, SearchConfiguratorDataModellInstance = this.SearchConfiguratorDataModellInstance, InformationenProcessingModellInstance = this.InformationenProcessingModellInstance }; Information createdInformation = InformationenBearbeitungModellInstance .CreateNewInformationWithDefinedType(CommonSearchClassListInstance.SelectedTypToCreate); if (createdInformation == null) break; CommonSearchClass newEntry = new CommonSearchClass(commonSearchClassList, createdInformation); if (commonSearchClassList.AllEntries == null) commonSearchClassList.AllEntries = new DataCollection<CommonSearchClass>(); commonSearchClassList.AllEntries.Add(newEntry); commonSearchClassList.SelectedWorkListEntry = newEntry; break; case CommonSearchClassList.RequiredProcessing.DeleteSelectedInformation: Guid IdToDelete = commonSearchClassList.SelectedWorkListEntry.InformationenConnectedEntry.Id; commonSearchClassList.RemoveInvolvedEntries(new List<Guid>() { IdToDelete }); InformationenPresentationModellInstance.InformationToProcess = null; RedaktionenModell.DeleteInformationenEntry (IdToDelete); commonSearchClassList.SelectedWorkListEntry = null; break; case CommonSearchClassList.RequiredProcessing.ProcessRedaktionenRequest: break; default: throw new Exception($"Fehlerhaftes requiredProcessing {requiredProcessing}"); } }
private void InformationenPresentationModellInstanceChanged(InformationenPresentationModell OldValue, InformationenPresentationModell NewValue) { }
private void StartTimingsTogetherWindow(InformationenPresentationModell modell, bool UpdateAllowed) { CsWindow timingsGroupWindow = new CsWindow(); timingsGroupWindow.Width = 1200; timingsGroupWindow.Height = 600; timingsGroupWindow.MaxHeight = 900; CsGlobal.Wpf.Storage.Window.Handle(timingsGroupWindow, "TimingsToghetherWindow"); timingsGroupWindow.Title = $"Bearbeitung aller Timings für {modell.InformationToProcess.Titel}"; TimingsGroupContainerModell timingsGroupContainerModell = new TimingsGroupContainerModell() { ParentInformation = modell.InformationToProcess, ParentTypId = modell.InformationToProcess.TypId, AutoCreationTypUsed = modell.InformationToProcess.Typ.GetAutoCreationTyp }; timingsGroupContainerModell.Create(modell.InformationToProcess); timingsGroupWindow.SizeToContent = SizeToContent.Height; timingsGroupWindow.Content = new TimingsGroupContainer(); ((TimingsGroupContainer) timingsGroupWindow.Content) .TimingsGroupContainerModellInstance = timingsGroupContainerModell; ((TimingsGroupContainer) timingsGroupWindow.Content).UpdateAllowed = UpdateAllowed; timingsGroupWindow.Closing += (sender, args) => { }; timingsGroupWindow.ShowDialog(); }
private void StartConnectorenTogetherWindow(InformationenPresentationModell modell, bool UpdateAllowed) { CsWindow connectorenGroupWindow = new CsWindow(); connectorenGroupWindow.Width = 1200; connectorenGroupWindow.Height = 600; connectorenGroupWindow.MaxHeight = 900; CsGlobal.Wpf.Storage.Window.Handle(connectorenGroupWindow, "ConnectorenToghetherWindow"); connectorenGroupWindow.Title = $"Bearbeitung aller Connectoren für {modell.InformationToProcess.Titel}"; modell.InformationToProcess.GetChapters = null; ProcessConnectorGroupContainerModell processConnectorGroupContainerModell = new ProcessConnectorGroupContainerModell() { ParentInformation = modell.InformationToProcess, ParentTypId = modell.InformationToProcess.TypId, AutoCreationTypUsed = modell.InformationToProcess.Typ.GetAutoCreationTyp }; processConnectorGroupContainerModell.Create(modell.InformationToProcess); connectorenGroupWindow.SizeToContent = SizeToContent.Height; connectorenGroupWindow.Content = new ProcessConnectorGroupContainer(); ((ProcessConnectorGroupContainer)connectorenGroupWindow.Content) .ProcessConnectorGroupContainerModellInstance = processConnectorGroupContainerModell; ((ProcessConnectorGroupContainer)connectorenGroupWindow.Content).UpdateAllowed = UpdateAllowed; connectorenGroupWindow.Closing += (sender, args) => { }; connectorenGroupWindow.ShowDialog(); }
private void MMUnitToProcesssInstanceChanged(MMUnit OldValue, MMUnit NewValue) { if (NewValue != null) { Data.DbServer3.MultiMedia.PreLoadAllForOneMMUnit(NewValue.Id); MMUnitElementeDetailsModellInstance = new MMUnitElementeDetailsModell() { MMUnitToProcess = NewValue }; InformationenPresentationModellInstance = new InformationenPresentationModell(); InformationenPresentationModellInstance.InformationToProcess = Data.DbServer3.AltErlaaInfo.Informationen.FindOrLoad(NewValue.MMInformationenId); } }