Dispose() protected method

Dispose of the status icon GUI elements.
protected Dispose ( bool isDisposing ) : void
isDisposing bool
return void
Esempio n. 1
0
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run ()
 {
     try {
     Application.Run (StatusIcon = new StatusIcon ());
     } finally {
     StatusIcon.Dispose ();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run()
 {
     try {
         Application.Run(StatusIcon = new StatusIcon());
     } finally {
         StatusIcon.Dispose();
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run()
 {
     Application.ThreadException += delegate(Object sender, ThreadExceptionEventArgs args) {
         Logger.Fatal("UI Exception occured", args.Exception);
         Environment.Exit(-1);
     };
     Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
     AppDomain.CurrentDomain.UnhandledException += delegate(Object sender, UnhandledExceptionEventArgs args) {
         Logger.Fatal(string.Format("Unhandled Exception occured on object {0}", args.ExceptionObject.ToString()));
     };
     Application.Run(StatusIcon = new StatusIcon());
     StatusIcon.Dispose();
 }
Esempio n. 4
0
File: UI.cs Progetto: sunxk/CmisSync
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run()
 {
     Application.Run(StatusIcon = new StatusIcon());
     StatusIcon.Dispose();
 }
Esempio n. 5
0
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run() {
     Application.ThreadException += delegate(Object sender, ThreadExceptionEventArgs args) {
         Logger.Fatal("UI Exception occured", args.Exception);
         Environment.Exit(-1);
     };
     Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
     AppDomain.CurrentDomain.UnhandledException += delegate(Object sender, UnhandledExceptionEventArgs args) {
         Logger.Fatal(string.Format("Unhandled Exception occured on object {0}", args.ExceptionObject.ToString()));
     };
     Application.Run(StatusIcon = new StatusIcon());
     StatusIcon.Dispose();
 }
Esempio n. 6
0
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run ()
 {
     Application.Run (StatusIcon = new StatusIcon ());
     StatusIcon.Dispose ();
 }