public void Dispose() { if (this.disposed) { return; } if (this.Setup != null) { this.Setup.Dispose(); this.Setup = null; } if (this.About != null) { this.About.Dispose(); this.About = null; } if (this.StatusIcon != null) { this.StatusIcon.Dispose(); this.StatusIcon = null; } if (this.Setting != null) { this.Setting.Dispose(); this.Setting = null; } this.disposed = true; }
/// <summary> /// Run the CmisSync user interface. /// </summary> public void Run () { try { Application.Run (StatusIcon = new StatusIcon ()); } finally { StatusIcon.Dispose (); } }
/// <summary> /// Run the CmisSync user interface. /// </summary> public void Run() { try { Application.Run(StatusIcon = new StatusIcon()); } finally { StatusIcon.Dispose(); } }
public GUI() { Application.Init(); Setup = new Setup(); About = new About(); StatusIcon = new StatusIcon(); CmisSync.Lib.Utils.SetUserNotificationListener(new UserNotificationListenerLinux(StatusIcon)); Program.Controller.UIHasLoaded(); }
public UI() { Application.Init(); this.Setup = new Setup(); this.About = new About(); this.StatusIcon = new StatusIcon(); this.Setting = new Setting(); Program.Controller.UIHasLoaded(); }
/// <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(); }
public UI() { using (var a = new NSAutoreleasePool()) { NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed("cmissync-app.icns"); SetFolderIcon(); Setup = new SetupWizardController(); About = new About(); StatusIcon = new StatusIcon(); Settings = new GeneralSettingsController(); Program.Controller.UIHasLoaded(); } }
public UI() { using (var a = new NSAutoreleasePool()) { NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed("cmissync-app.icns"); this.SetFolderIcon(); this.Setup = new SetupWizardController(); this.About = new About(); this.StatusIcon = new StatusIcon(); this.Settings = new GeneralSettingsController(); this.Transmission = new TransmissionWidgetController(); this.Transmission.LoadWindow(); this.Transmission.Window.IsVisible = false; Program.Controller.UIHasLoaded(); } }
public UI() { using (var a = new NSAutoreleasePool()) { GrowlApplicationBridge.WeakDelegate = this; GrowlApplicationBridge.Delegate = new CmisSyncGrowlDelegate(); NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed("cmissync-app.icns"); SetFolderIcon(); Setup = new Setup(); About = new About(); Bubbles = new Bubbles(); StatusIcon = new StatusIcon(); Program.Controller.UIHasLoaded(); } }
public UI () { using (var a = new NSAutoreleasePool ()) { GrowlApplicationBridge.WeakDelegate = this; GrowlApplicationBridge.Delegate = new CmisSyncGrowlDelegate (); NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed ("cmissync-app.icns"); SetFolderIcon (); Setup = new Setup (); About = new About (); Bubbles = new Bubbles (); StatusIcon = new StatusIcon (); Program.Controller.UIHasLoaded (); } }
public UI() { using (var a = new NSAutoreleasePool()) { var currentDirectory = Directory.GetCurrentDirectory(); var image = NSImage.ImageNamed("cmissync-app.icns"); NSApplication.SharedApplication.ApplicationIconImage = image; SetFolderIcon(); #if ODS_NEW_GUI Setup = new SetupWizardController(); #else Setup = new Setup(); #endif About = new About(); StatusIcon = new StatusIcon(); Program.Controller.UIHasLoaded(); } }
/// <summary> /// Run the CmisSync user interface. /// </summary> public void Run() { Application.Run(StatusIcon = new StatusIcon()); StatusIcon.Dispose(); }
/// <summary> /// Run the CmisSync user interface. /// </summary> public void Run () { Application.Run (StatusIcon = new StatusIcon ()); StatusIcon.Dispose (); }
public UserNotificationListenerLinux(StatusIcon icon) { status = icon; }