示例#1
0
		bool Instance_ChangeTextLayoutCall (object Sender, GraphicsHandling GraphiccHandler, DataRow FrameRow)
			{
			CommonUserInterfaceWindows FrameLayoutParameterWindow = new CommonUserInterfaceWindows ();
			FrameLayoutParameterWindow.DoIndividualDataCheckBeforeUpdateCall +=
				new DoIndividualDataCheckBeforeUpdateEvent (FrameLayoutParameterWindow_DoIndividualDataCheckBeforeUpdateCall);
			FrameLayoutParameterWindow.SetData (null, new CVM.ControlUserData ("Frames", "ID", "", true),
				null, null, FrameRow, "Bitte Layout korrigieren");
			return (bool) FrameLayoutParameterWindow.ShowDialog ();
			}
示例#2
0
		private void HandleShowAndEditListBoxEntry_MouseRightButtonUp (Object Class, Object SenderListBox, MouseButtonEventArgs e)
			{

			CommonUserInterfaceWindows StandardTableWindow = new CommonUserInterfaceWindows ();
			StandardTableWindow.SkipThisColumns = GetSkipThisColumnForThisTable (TableRowToProcess);
			StandardTableWindow.ProcessModifyKeyTableCall += new ProcessModifyKeyTableEvent (StandardTableWindow_ProcessModifyKeyTableCall);
			if (StandardTableWindow.SetData (m_DataBase, SenderListBox, "", SchemaDataSet,
						null) == false)
				return;
			//if (ProcessSelectableModifyingCall != null)
			//    {
			//    if (ProcessSelectableModifyingCall (PressedButtons.SelectableModifying, StandardTableWindow.ActiveID) == false)
			//        return;
			//    }
			StandardTableWindow.GetReadableTextForEntryCall +=
				new GetReadableTextForEntryEvent (DataRowWindow_GetReadableTextForEntryCall);
			StandardTableWindow.DoIndividualDataCheckBeforeUpdateCall +=
				new DoIndividualDataCheckBeforeUpdateEvent (DataRowWindow_DoIndividualDataCheckBeforeUpdateCall);
			if (StandardTableWindow.ShowDialog () == true)
				{
				Type MyType = Class.GetType ();
				MyType.InvokeMember (StandardTableWindow.RefreshmentRoutine,
					BindingFlags.InvokeMethod | BindingFlags.DeclaredOnly
					| BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance,
					null, Class, new Object [] { StandardTableWindow.ActiveID });
				//if (ProcessSelectableModifiedCall != null)
				//    {
				//    if (ProcessSelectableModifiedCall (PressedButtons.SelectableModified, StandardTableWindow.ActiveID) == false)
				//        return;
					//}

				}

			}
示例#3
0
		private void HandleShowAndEditListBoxEntry_MouseRightButtonUp (Object Class, Object SenderListBox, MouseButtonEventArgs e)
			{
			//SimpleDataRowWindow DataRowWindow = new SimpleDataRowWindow ();
			//DataRowWindow.DataBase = DataBase;
			//DataRowWindow.HandleShowAndEditListBoxEntry_MouseRightButtonUpCall +=
			//    new CVM.HandleShowAndEditListBoxEntry_MouseRightButtonUpEvent
			//            (HandleShowAndEditListBoxEntry_MouseRightButtonUp);
			//DataRowWindow.DefineSelectionWindowControlsCall += new CVM.SelectWindow.DefineSelectionWindowControlsEvent
			//    (DataRowWindow_DefineSelectionWindowControlsCall);
			//if (!DataRowWindow.SetListBox (SenderListBox, m_Bereich, m_SchemaDataSet))
			//    return;
			//DataRowWindow.GetReadableTextForEntryCall += new SimpleDataRowWindow.GetReadableTextForEntryEvent
			//                (DataRowWindow_GetReadableTextForEntryCall);
			//if (DataRowWindow.ShowDialog () == true)
			//    {
			//    Type MyType = Class.GetType ();
			//    MyType.InvokeMember (DataRowWindow.RefreshmentRoutine,
			//        BindingFlags.InvokeMethod | BindingFlags.DeclaredOnly
			//        | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance,
			//        null, Class, new Object [] { DataRowWindow.ActiveID });
			//    }


			CVM.CommonUserInterfaceWindows StandardTableWindow = new CVM.CommonUserInterfaceWindows ();
			StandardTableWindow.SkipThisColumns = new string [] { "ID" };
			if (StandardTableWindow.SetData (m_DataBase, SenderListBox, "", m_SchemaDataSet,
						null) == false)
				return;
			//if (ProcessSelectableModifyingCall != null)
			//    {
			//    if (ProcessSelectableModifyingCall (PressedButtons.SelectableModifying, StandardTableWindow.ActiveID) == false)
			//        return;
			//    }

			StandardTableWindow.GetReadableTextForEntryCall +=
				new GetReadableTextForEntryEvent (DataRowWindow_GetReadableTextForEntryCall);
			StandardTableWindow.DoIndividualDataCheckBeforeUpdateCall +=
				new DoIndividualDataCheckBeforeUpdateEvent (StandardTableWindow_DoIndividualDataCheckBeforeUpdateCall);
			StandardTableWindow.HandleShowAndEditListBoxEntry_MouseRightButtonUpCall +=
				new CVM.HandleShowAndEditListBoxEntry_MouseRightButtonUpEvent
					(HandleShowAndEditListBoxEntry_MouseRightButtonUp);
			if (StandardTableWindow.ShowDialog () == true)
				{
				Type MyType = Class.GetType ();
				MyType.InvokeMember (StandardTableWindow.RefreshmentRoutine,
					BindingFlags.InvokeMethod | BindingFlags.DeclaredOnly
					| BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance,
					null, Class, new Object [] { StandardTableWindow.ActiveID });
				//if (ProcessSelectableModifiedCall != null)
				//    {
				//    if (ProcessSelectableModifiedCall (PressedButtons.SelectableModified, StandardTableWindow.ActiveID) == false)
				//        return;
				//}

				}
			
			
			
			}
		void m_AvailableResources_MouseRightButtonUp (object sender, MouseButtonEventArgs e)
			{
			CVM.CommonSelectionWindow TableSelectionWindow = new CommonSelectionWindow ();
			//TableSelectionWindow.ReportNewIDToMeCall += new ReportNewIDToMeEvent (TableSelectionWindow_ReportNewIDToMeCall);
			TableSelectionWindow.SetData ("", m_DataBase, null, "Booking", "Buchungen", null, null, null);
			TableSelectionWindow.ShowDialog ();
			FillBookings (String.Empty);
			return;
			CVM.CommonUserInterfaceWindows StandardTableWindow = new CVM.CommonUserInterfaceWindows ();
			StandardTableWindow.SkipThisColumns = new string [] { "ID" };
			if (StandardTableWindow.SetData (m_DataBase, sender, "", SchemaDataSet,
						null) == false)
				return;
			//if (ProcessSelectableModifyingCall != null)
			//    {
			//    if (ProcessSelectableModifyingCall (PressedButtons.SelectableModifying, StandardTableWindow.ActiveID) == false)
			//        return;
			//    }
			StandardTableWindow.GetReadableTextForEntryCall += new GetReadableTextForEntryEvent
				(StandardTableWindow_GetReadableTextForEntryCall);
			//StandardTableWindow.DoIndividualDataCheckBeforeUpdateCall += new DoIndividualDataCheckBeforeUpdateEvent (StandardTableWindow_DoIndividualDataCheckBeforeUpdateCall);
			if (StandardTableWindow.ShowDialog () == true)
				{
				Type MyType = this.GetType ();
				MyType.InvokeMember (StandardTableWindow.RefreshmentRoutine,
					BindingFlags.InvokeMethod | BindingFlags.DeclaredOnly
					| BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance,
					null, this, new Object [] { StandardTableWindow.ActiveID });
				//if (ProcessSelectableModifiedCall != null)
				//    {
				//    if (ProcessSelectableModifiedCall (PressedButtons.SelectableModified, StandardTableWindow.ActiveID) == false)
				//        return;
				//}

				}

			}
		private void TestDefinitions_Click (object sender, RoutedEventArgs e)
			{
			ListBox SelectableEntries = LoadAndShowListBoxWithTestEntries ();
			CVM.CommonUserInterfaceWindows StandardTableWindow = new CVM.CommonUserInterfaceWindows ();
			//StandardTableWindow.SkipThisColumns = GetSkipThisColumnForThisTable (TableRowToProcess);
			CVM.ControlUserData UserData = new ControlUserData (SelectedTableName, "ID", null, true);
			if (StandardTableWindow.SetData (m_DataBase, SelectableEntries, "", m_IIntelliSenseAutoCompletionFactory.SchemaDataSet,
						null) == false)
				return;
			//if (ProcessSelectableModifyingCall != null)
			//    {
			//    if (ProcessSelectableModifyingCall (PressedButtons.SelectableModifying, StandardTableWindow.ActiveID) == false)
			//        return;
			//    }
			//StandardTableWindow.GetReadableTextForEntryCall +=
			//    new GetReadableTextForEntryEvent (DataRowWindow_GetReadableTextForEntryCall);
			//StandardTableWindow.DoIndividualDataCheckBeforeUpdateCall +=
			//    new DoIndividualDataCheckBeforeUpdateEvent (DataRowWindow_DoIndividualDataCheckBeforeUpdateCall);
			if (StandardTableWindow.ShowDialog () == true)
				{
				Type MyType = this.GetType ();
				MyType.InvokeMember (StandardTableWindow.RefreshmentRoutine,
					BindingFlags.InvokeMethod | BindingFlags.DeclaredOnly
					| BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance,
					null, this, new Object [] { StandardTableWindow.ActiveID });
				//if (ProcessSelectableModifiedCall != null)
				//    {
				//    if (ProcessSelectableModifiedCall (PressedButtons.SelectableModified, StandardTableWindow.ActiveID) == false)
				//        return;
				//}

				}


			}