Inheritance: System.MarshalByRefObject, IDisposable
Example #1
0
 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();
 }
Example #3
0
 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));
			}
		}
Example #6
0
 public override void Dispose()
 {
     frontend.disposed = true;
     System.Runtime.Remoting.RemotingServices.Disconnect (frontend);
     if (editSession != null)
         editSession.Dispose ();
     editSession = null;
     base.Dispose ();
 }