private void ProcessConnectorContainerModellInstanceChanged(ProcessConnectorContainerModell OldValue,
			ProcessConnectorContainerModell NewValue)
			{
			}
Ejemplo n.º 2
0
		private void CreateOneEmptyContainer
				(ObservableCollection<ProcessConnectorContainerModell> processConnectorContainerModells,
				ProcessConnectorModell.ProcessConnectorContainerTyp TypToCreate)
			{
			if (processConnectorContainerModells.Count > 0)
				{
				if (processConnectorContainerModells.Where(sel => sel.ProcessConnectorContainerTyp == TypToCreate).Count() > 0)
					return;
				}
			ProcessConnectorContainerModell containerModell = new ProcessConnectorContainerModell();
			processConnectorContainerModells.Add(containerModell);
			containerModell.Parent = this;
			containerModell.ProcessConnectorContainerTyp = TypToCreate;
			switch (containerModell.ProcessConnectorContainerTyp)
				{
				case ProcessConnectorModell.ProcessConnectorContainerTyp.StandBild:
					containerModell.ContainerBrush = Brushes.Green;
					break;
				case ProcessConnectorModell.ProcessConnectorContainerTyp.Banner:
					containerModell.ContainerBrush = Brushes.Red;
					break;
				case ProcessConnectorModell.ProcessConnectorContainerTyp.Video:
					containerModell.ContainerBrush = Brushes.Yellow;
					break;
				}
			containerModell.HeadLine = $"Connectoren für {TypToCreate}";
			containerModell.ProcessConnectorModells = new ObservableCollection<ProcessConnectorModell>();
			}