/// <summary> /// Executes anonymous delegate event in specialized terms. For example /// all data transfers in Gtk.DataBindings have to be executed trough /// Gtk.Invoke /// Basically just provides for user function to be executed in right /// conditions /// </summary> /// <param name="aEvent"> /// Event to be executed <see cref="AnonymousDelegateEvent"/> /// </param> public virtual void ExecuteUserMethod (AnonymousDelegateEvent aEvent) { if (aEvent != null) aEvent(); }
/// <summary> /// Executes anonymous delegate event in specialized terms. For example /// all data transfers in Gtk.DataBindings have to be executed trough /// Gtk.Invoke /// </summary> /// <param name="aEvent"> /// Event to be executed <see cref="AnonymousDelegateEvent"/> /// </param> public override void ExecuteUserMethod(AnonymousDelegateEvent aEvent) { Gtk.Application.Invoke(delegate { aEvent(); }); }