Example #1
0
	    private void TimingsModellInstanceChanged(TimingsModell OldValue,
		    TimingsModell NewValue)
		    {
		    }
Example #2
0
	    private void InformationAddOnInstanceChanged(InformationAddOn OldValue,
		    InformationAddOn NewValue)
		    {
		    if (NewValue != null)
			    {
				TimingsModellInstance = new TimingsModell(NewValue);
//				TimingsModellInstance.RedrawMe();

				}
		    }
Example #3
0
		private void CreateOneEmptyContainer
				(ObservableCollection<TimingsContainerModell> timingsContainerModells,
				TimingsModell.TimingsContainerTyp TypToCreate)
			{
			if (timingsContainerModells.Count > 0)
				{
				if (timingsContainerModells.Where(sel => sel.TimingsContainerTyp == TypToCreate).Count() > 0)
					return;
				}
			TimingsContainerModell containerModell = new TimingsContainerModell();
			timingsContainerModells.Add(containerModell);
			containerModell.Parent = this;
			containerModell.TimingsContainerTyp = TypToCreate;
			switch (containerModell.TimingsContainerTyp)
				{
				case TimingsModell.TimingsContainerTyp.Information:
					containerModell.ContainerBrush = Brushes.Blue;
					break;
				case TimingsModell.TimingsContainerTyp.StandBild:
					containerModell.ContainerBrush = Brushes.Green;
					break;
				case TimingsModell.TimingsContainerTyp.Banner:
					containerModell.ContainerBrush = Brushes.Red;
					break;
				case TimingsModell.TimingsContainerTyp.Video:
					containerModell.ContainerBrush = Brushes.Yellow;
					break;
				}
			containerModell.HeadLine = $"Timings für {TypToCreate}";
			containerModell.TimingsModells = new ObservableCollection<TimingsModell>();
			}