Beispiel #1
0
		private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
			{
			ProgrammSchemaModell ProgrammSchemaModellHelper = new ProgrammSchemaModell();
			ProgrammSchemaModellHelper.InitializeMe();
			ProgrammSchemaModellHelper.ActualRing = ProgrammSchemaModellHelper.CreateNewRingInstance();
			ProgrammSchemaModellInstance = ProgrammSchemaModellHelper;
			}
Beispiel #2
0
		private void ProgrammSchemaModellInstanceChanged(ProgrammSchemaModell OldValue,
			ProgrammSchemaModell NewValue)
			{
			if ((NewValue != null)
				&& (!String.IsNullOrEmpty(SenderName)))
				{
				ProgrammSchemaModellInstance.LoadPlayListFromSerialized(SenderName);
				}
			}
Beispiel #3
0
		public MainWindow ()
			{
			CsGlobal.Install(GlobalFunctions.WpfStorage | GlobalFunctions.Storage| GlobalFunctions.AppData);
			//CsGlobal.Wpf.Storage.ListView.Handle();

			//TODO Data.DbServer3_Connect_Direct();

			String UserName = String.Empty;
#if DEBUG
			String[] Rollen = LoginHandler.SetDataAccessSecurity();
#else
			String[] Rollen = CVM.LoginHandler.CheckUser(ref UserName);
#endif
			//			String[] Rollen = LoginHandler.SetDataAccessSecurity();
			if ((Rollen == null)
				|| (Rollen.Length == 0))
				{
				Close();
				return;
				}
			if (Directory.Exists("\\\\Webserver2\\WPMediaSender"))
				{
				Data.DbServer3_Connect_Direct();
				Application.Current.Properties["WPMediaNetworkEnvironment"] = true;
				}
			else
				{
				Data.DbServer3_Connect_OldWebService();
				Application.Current.Properties["WPMediaNetworkEnvironment"] = false;
				}
			if (InformationenBearbeitungModellInstance == null)
				{
				InformationenBearbeitungModellInstance = new InformationenBearbeitungModell();
				InformationenBearbeitungModellInstance.CommonSearchClassListInstance = new CommonSearchClassList();
				Data.DbServer3.AltErlaaInfo.LoadAll_IfHasNotBeenLoaded();
				Data.DbServer3.WPMediaAddOnData.LoadAll_IfHasNotBeenLoaded();
				InformationenBearbeitungModellInstance.SearchConfiguratorDataModellInstance = new SearchConfiguratorDataModell();
				InformationenBearbeitungModellInstance.InformationenProcessingModellInstance = new InformationenProcessingModell();
				InformationenBearbeitungsStandModellInstance = new InformationenBearbeitungsStandModell();
				InformationenBearbeitungsStandModellInstance.CommonSearchClassList = new CommonSearchClassList();
				IOldToNewInterfaceInstance = new OldToNew();
				CommonProfileModellInstance = new CommonProfileModell();
				ProgrammSchemaModellInstance = new ProgrammSchemaModell();
				}
			InitializeComponent();
            }
Beispiel #4
0
		private void ProgrammSchemaModellInstanceChanged(ProgrammSchemaModell OldValue,
			ProgrammSchemaModell NewValue)
			{
			}
Beispiel #5
0
		public MainWindow()
			{

#region (WPClientStartup) Standard RichClient Security and DataBase Startup

			String UserName = String.Empty;
#if DEBUG
			String[] Rollen = LoginHandler.SetDataAccessSecurity("Heinz", "monika");
#else
			String[] Rollen = LoginHandler.CheckUser(ref UserName);
#endif
			if (Rollen == null)
				{
				Close();
				return;
				}
			WPMediaApplicationState.Instance.Properties["Rollen"] = Rollen;
			WPMediaApplicationState.Instance.Properties["UserName"] = UserName;
			if (Directory.Exists("\\\\Webserver2\\WPMediaSender"))
				{
				Data.DbServer3_Connect_Direct();
				Application.Current.Properties["WPMediaNetworkEnvironment"] = true;
				}
			else
				{
				Data.DbServer3_Connect_OldWebService();
				Application.Current.Properties["WPMediaNetworkEnvironment"] = false;
				}


			if (!(WMB.WPMediaApplicationState.Instance.Properties["Rollen"] as String[]).Contains("Management"))
				return;
			#endregion

			DoDataStartup();
			if (ProgrammSchemaModellInstance != null)
				return;
			ProgrammSchemaModell programmSchemaModellHelper = new ProgrammSchemaModell();
			programmSchemaModellHelper.InitializeMe();
			programmSchemaModellHelper.dataContext.DefaultRangeFrom = DateTime.Now.Date;
			programmSchemaModellHelper.dataContext.DefaultRangeTo = DateTime.Now.Date.AddMinutes(1439);
			ProgrammSchemaModellInstance = programmSchemaModellHelper;
			SenderManagementModellInstance = new SenderManagementModell();
			MMSenderManagementModellInstance = new MMSenderManagementModell();
			MMUnitsManagementModellInstance = new MMUnitsManagementModell();
			InitializeComponent();
			}
Beispiel #6
0
		public PlayListGroup(ProgrammSchemaModell parent, int hourIndex, String selectionString)
			{
			Parent = parent;
			HourIndex = hourIndex;
			SelectionString = selectionString;
			}