public override void Dispose() { frontend.disposed = true; System.Runtime.Remoting.RemotingServices.Disconnect(frontend); if (editSession != null) { editSession.Dispose(); } editSession = null; base.Dispose(); }
protected override void OnDestroyed() { frontend.disposed = true; System.Runtime.Remoting.RemotingServices.Disconnect(frontend); if (editSession != null) { editSession.Dispose(); } editSession = null; base.OnDestroyed(); }
void CreateSession() { try { if (actionGroupName != null) { editSession = project.ProjectBackend.CreateGlobalActionGroupDesignerSession(frontend, actionGroupName, autoCommitChanges); } else { editSession = project.ProjectBackend.CreateLocalActionGroupDesignerSession(frontend, componentName, autoCommitChanges); } ResetCustomWidget(); } catch (Exception ex) { editSession = null; Console.WriteLine(ex); AddCustomWidget(new Gtk.Label(ex.Message)); } }
protected override void OnDestroyed () { frontend.disposed = true; System.Runtime.Remoting.RemotingServices.Disconnect (frontend); if (editSession != null) editSession.Dispose (); editSession = null; base.OnDestroyed (); }
void CreateSession () { try { if (actionGroupName != null) editSession = project.ProjectBackend.CreateGlobalActionGroupDesignerSession (frontend, actionGroupName, autoCommitChanges); else editSession = project.ProjectBackend.CreateLocalActionGroupDesignerSession (frontend, componentName, autoCommitChanges); ResetCustomWidget (); } catch (Exception ex) { editSession = null; Console.WriteLine (ex); AddCustomWidget (new Gtk.Label (ex.Message)); } }
public override void Dispose() { frontend.disposed = true; System.Runtime.Remoting.RemotingServices.Disconnect (frontend); if (editSession != null) editSession.Dispose (); editSession = null; base.Dispose (); }