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();
			}
Пример #2
0
		private void StartTimingsTogetherWindow(Information information)
			{
			CsWindow timingsGroupWindow = new CsWindow();
			timingsGroupWindow.Width = 1200;
			timingsGroupWindow.Height = 600;
			CsGlobal.Wpf.Storage.Window.Handle(timingsGroupWindow, "ShowTimingsToghetherWindow");
			timingsGroupWindow.Title = $"Zeigen aller Timings für {information.Titel}";
			TimingsGroupContainerModell timingsGroupContainerModell = new TimingsGroupContainerModell()
				{
				ParentInformation = information,
				ParentTypId = information.TypId,
				AutoCreationTypUsed = information.Typ.GetAutoCreationTyp

				};
			timingsGroupContainerModell.Create(information);
			timingsGroupWindow.SizeToContent = SizeToContent.Height;
			timingsGroupWindow.Content = new TimingsGroupContainer();
			((TimingsGroupContainer)timingsGroupWindow.Content)
				.TimingsGroupContainerModellInstance = timingsGroupContainerModell;
			((TimingsGroupContainer)timingsGroupWindow.Content).UpdateAllowed = false;
			timingsGroupWindow.Closing += (sender, args) =>
			{
			};
			timingsGroupWindow.ShowDialog();
			}
Пример #3
0
		public void DoStartup(AutoCreationTyp autoCreationTyp, DateTime startDateTimeToUse)
			{
			if (TimingsGroupContainer == null)
				{
				TimingsGroupContainer = new TimingsGroupContainerModell()
					{
					ParentInformation = InformationToProcess,
					ParentTypId = autoCreationTyp.TypToUseId,
					AutoCreationTypUsed = autoCreationTyp
					};
				TimingsGroupContainer.Create(InformationToProcess);
				}
			AutoCreationTypUsed = autoCreationTyp;


			TimingsGroupContainer.InformationenTimingsModells[0].TimingToProcess.TimeA = startDateTimeToUse
				.AddHours((int) autoCreationTyp.DefaultStartHours)
				.AddMinutes((int) autoCreationTyp.DefaultStartMinutes);
			TimingsGroupContainer.InformationenTimingsModells[0].TimingToProcess.TimeB 
				= ((DateTime)TimingsGroupContainer.InformationenTimingsModells[0].TimingToProcess.TimeA)
				.AddMonths((int) autoCreationTyp.DefaultDurationMonths)
				.AddDays((int) autoCreationTyp.DefaultDurationDays)
				.AddHours((int) autoCreationTyp.DefaultDurationHours)
				.AddMinutes((int) autoCreationTyp.DefaultDurationMinutes);

//			RefreshBeitragsTimings(autoCreationTyp);
			}