CmisSync icon in the Windows status bar.
Наследование: System.Windows.Forms.Form
Пример #1
0
        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;
        }
Пример #2
0
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run ()
 {
     try {
     Application.Run (StatusIcon = new StatusIcon ());
     } finally {
     StatusIcon.Dispose ();
     }
 }
Пример #3
0
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run()
 {
     try {
         Application.Run(StatusIcon = new StatusIcon());
     } finally {
         StatusIcon.Dispose();
     }
 }
Пример #4
0
        public GUI()
        {
            Application.Init();

            Setup      = new Setup();
            About      = new About();
            StatusIcon = new StatusIcon();
            CmisSync.Lib.Utils.SetUserNotificationListener(new UserNotificationListenerLinux(StatusIcon));
            Program.Controller.UIHasLoaded();
        }
Пример #5
0
        public UI()
        {
            Application.Init();

            this.Setup      = new Setup();
            this.About      = new About();
            this.StatusIcon = new StatusIcon();
            this.Setting    = new Setting();
            Program.Controller.UIHasLoaded();
        }
Пример #6
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();
 }
Пример #7
0
        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();
            }
        }
Пример #8
0
        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();
            }
        }
Пример #9
0
        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();
            }
        }
Пример #10
0
        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();
            }
        }
Пример #11
0
        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 ();
            }
        }
Пример #12
0
        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();
            }
        }
Пример #13
0
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run()
 {
     Application.Run(StatusIcon = new StatusIcon());
     StatusIcon.Dispose();
 }
Пример #14
0
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run ()
 {
     Application.Run (StatusIcon = new StatusIcon ());
     StatusIcon.Dispose ();
 }
		public UserNotificationListenerLinux(StatusIcon icon)
        {
			status = icon;
        }
Пример #16
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();
 }
 public UserNotificationListenerLinux(StatusIcon icon)
 {
     status = icon;
 }