private void InformationInstanceChanged(Information OldValue, Information NewValue) { if (NewValue != null) { ProcessConnectorGroupContainerModell helper = new ProcessConnectorGroupContainerModell() { ParentInformation = NewValue, ParentTypId = NewValue.TypId, AutoCreationTypUsed = NewValue.Typ.GetAutoCreationTyp }; helper.Create(NewValue); ProcessConnectorGroupContainerModellInstance = helper; } }
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(); }