static Local() { NativeFunctions = (ObjectArrayNative *)Interfaces.Get(Core.Name.Make("PointerArray")).ToPointer(); Debug.Assert(NativeFunctions != null); NativeFunctions->Validate(); Add = Marshal.GetDelegateForFunctionPointer <AddDelegate>(NativeFunctions->Add); RemoveAt = Marshal.GetDelegateForFunctionPointer <RemoveAtDelegate>(NativeFunctions->RemoveAt); Insert = Marshal.GetDelegateForFunctionPointer <InsertDelegate>(NativeFunctions->Insert); Reserve = Marshal.GetDelegateForFunctionPointer <ReserveDelegate>(NativeFunctions->Reserve); }
public static void Delete(Dictionary <string, object> p) { try { InsertDelegate delete = Info.Delete; delete(Source.ProgramObligations, Provider.SQLite, p); } catch (Exception ex) { new Error(ex).ShowDialog(); } }
private void OkButton_Click(object sender, RoutedEventArgs e) { _isRunning = true; //TODO: Add the current state to the UndoStack #region Update UI Cursor = Cursors.AppStarting; LeftScrollViewer.IsEnabled = false; RightScrollViewer.IsEnabled = false; //LeftInfoGrid.IsEnabled = false; //RightInfoGrid.IsEnabled = false; OkButton.IsEnabled = false; #endregion _insertDel = InsertFrames; _insertDel.BeginInvoke(AfterRadioButton.IsChecked.Value, InsertCallback, null); }