private void OnTextBoxLeave(object sender, EventArgs e) { if (LeaveEditor != null) { LeaveEditor.Invoke(this, e); } }
/// <summary> /// Leaving the textbox event /// </summary> /// <param name="o">The calling object</param> /// <param name="e">The event arguments</param> private void OnTextBoxLeave(object o, EventArgs e) { ((o as Widget).Toplevel as Gtk.Window).RemoveAccelGroup(accel); if (LeaveEditor != null) { LeaveEditor.Invoke(this, e); } }
/// <summary> /// Leaving the textbox event /// </summary> /// <param name="o">The calling object</param> /// <param name="e">The event arguments</param> private void OnTextBoxLeave(object o, EventArgs e) { try { ((o as Widget).Toplevel as Gtk.Window).RemoveAccelGroup(accel); if (LeaveEditor != null) { LeaveEditor.Invoke(this, e); } } catch (Exception err) { ShowError(err); } }