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