public void DataGrid_MouseRightButtonUp (Object Class) { SelectionDataGrid.InvalidateVisual (); CVM.CommonUserInterfaceWindows StandardTableWindow = new CVM.CommonUserInterfaceWindows (); if (StandardTableWindow.SetData (DataBase, SelectionDataGrid, "", null, LayoutDefinition) == false) return; if (ProcessSelectableModifyingCall != null) { if (ProcessSelectableModifyingCall (PressedButtons.SelectableModifying, StandardTableWindow.ActiveID) == false) return; } StandardTableWindow.GetReadableTextForEntryCall += new GetReadableTextForEntryEvent (StandardTableWindow_GetReadableTextForEntryCall); StandardTableWindow.UpdatesNotAllowed = UpdatesNotAllowed; 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; } } }
public void EnterTableModifyProcessing (Object Class, Object SenderListBox, MouseButtonEventArgs e) { CVM.CommonUserInterfaceWindows TableProcessingWindow = new CVM.CommonUserInterfaceWindows (); TableProcessingWindow.InsertSqlStatement = InsertSqlStatement; TableProcessingWindow.DeleteSqlStatement = DeleteSqlStatement; TableProcessingWindow.FillSqlStatement = FillSqlStatement; TableProcessingWindow.ReadableSqlStatement = ReadableSqlStatement; TableProcessingWindow.UpdatesNotAllowed = UpdatesNotAllowed; if (CheckTheSelectionFillStatementCall != null) TableProcessingWindow.CheckTheSelectionFillStatementCall += new CheckTheSelectionFillStatementEvent (TableProcessingWindow_CheckTheSelectionFillStatementCall); TableProcessingWindow.GetMissingIDToModifyCall += new GetMissingIDToModifyEvent (TableProcessingWindow_GetMissingIDToModifyCall); TableProcessingWindow.SkipThisColumns = SkipThisColumnsFromChangeable; if (TableProcessingWindow.SetData (m_DataBase, SenderListBox, "", m_SchemaDataSet, (TableLayoutDefinition) null) == false) return; TableProcessingWindow.GetReadableTextForEntryCall += new GetReadableTextForEntryEvent (TableProcessingWindow_GetReadableTextForEntryCall); TableProcessingWindow.DoIndividualDataCheckBeforeUpdateCall += new DoIndividualDataCheckBeforeUpdateEvent (TableProcessingWindow_DoIndividualDataCheckBeforeUpdateCall); TableProcessingWindow.HandleShowAndEditListBoxEntry_MouseRightButtonUpCall += new CVM.HandleShowAndEditListBoxEntry_MouseRightButtonUpEvent (TableProcessingWindow_HandleShowAndEditListBoxEntry_MouseRightButtonUpCall); if (TableProcessingWindow.ShowDialog () == true) { Type MyType = Class.GetType (); MyType.InvokeMember (TableProcessingWindow.RefreshmentRoutine, BindingFlags.InvokeMethod | BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance, null, Class, new Object [] { TableProcessingWindow.ActiveID }); } }