Exemplo n.º 1
0
		void m_TableProcessing_CloseRequestedCall (Object Sender, string Message)
			{
			if (String.IsNullOrEmpty(Message))
				{
				m_FunctionSelection = new FunctionSelection ();
				m_FunctionSelection.m_TablesConstructionFinished = m_TablesConstructionFinished;
				m_FunctionSelection.DataAccess = m_DataBase;
				m_FunctionSelection.SchemaDataSet = SchemaDataSet;
				m_FunctionSelection.Rollen = WMB.WPMediaApplicationState.Instance.Properties ["Rollen"] as String [];
				m_FunctionSelection.CloseRequestedCall += new CloseRequested (m_FunctionSelection_CloseRequestedCall);
				m_FunctionSelection.StartDataActualizationCall +=
					new FunctionSelection.StartDataActualizationEvent(m_FunctionSelection_StartViewDataActualizationCall);
				Content = m_FunctionSelection;
				return;
				}
			}
Exemplo n.º 2
0
		void StartStandardProcessing ()
			{
			if (!ExternalControlServer.HookedInTheCommandProcessingChain ("StartUpWindow"))
				{
				ExternalControlServer.MessageReceivedCall += new ExternalControlServer.MessageReceivedEvent
					(ExternalRequest_MessageReceivedCall);
				ExternalControlServer.HookeIntoTheCommandProcessingChain ("StartUpWindow");
				}
			try
				{
				m_FunctionSelection = new FunctionSelection ();
				}
			catch (Exception Excp)
				{
				MessageBox.Show ("Fehler bei FunctionSelection.new\r\n" + Excp.ToString());
				Close ();
				}
			m_TablesConstructionFinished = new List<string> ();
			SchemaDataSet = m_DataBase.GetCommonSchemaDataSet ();
			m_UserAuthenticated = true;
			m_FunctionSelection.SchemaDataSet = SchemaDataSet;
			m_FunctionSelection.DataAccess = m_DataBase;
			m_FunctionSelection.Rollen = WMB.WPMediaApplicationState.Instance.Properties ["Rollen"] as String [];
			m_FunctionSelection.CloseRequestedCall += new CloseRequested(m_FunctionSelection_CloseRequestedCall);
			//m_FunctionSelection.DoCacheDirectorySynchronizationCall += new FunctionSelection.DoCacheDirectorySynchronizationEvent
			//    (DoCacheDirectorySynchronization);
			m_FunctionSelection.StartDataActualizationCall +=
				new FunctionSelection.StartDataActualizationEvent (m_FunctionSelection_StartViewDataActualizationCall);
			Content = m_FunctionSelection;
			SizeToContent = SizeToContent.WidthAndHeight;
			LoadUserSettings ();
//			ExternalControlServer.StartListening ();
			}