CmisSync icon in the Windows status bar.
Inheritance: System.Windows.Forms.Form
コード例 #1
0
ファイル: UI.cs プロジェクト: OpenDataSpace/CmisSync
        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
ファイル: GUI.cs プロジェクト: aegif/CmisSync
 /// <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
ファイル: GUI.cs プロジェクト: weberale/CmisSync
        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
ファイル: UI.cs プロジェクト: OpenDataSpace/CmisSync
 /// <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
ファイル: UI.cs プロジェクト: sunxk/CmisSync
        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
ファイル: UI.cs プロジェクト: OpenDataSpace/CmisSync
        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
ファイル: UI.cs プロジェクト: OpenDataSpace/CmisSync
        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
ファイル: UI.cs プロジェクト: keithwharrison/Oris4Sync
        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
ファイル: UI.cs プロジェクト: sunxk/CmisSync
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run()
 {
     Application.Run(StatusIcon = new StatusIcon());
     StatusIcon.Dispose();
 }
コード例 #14
0
ファイル: GUI.cs プロジェクト: emrul/CmisSync
 /// <summary>
 /// Run the CmisSync user interface.
 /// </summary>
 public void Run ()
 {
     Application.Run (StatusIcon = new StatusIcon ());
     StatusIcon.Dispose ();
 }
コード例 #15
0
		public UserNotificationListenerLinux(StatusIcon icon)
        {
			status = icon;
        }
コード例 #16
0
ファイル: UI.cs プロジェクト: OpenDataSpace/CmisSync
 /// <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();
 }
コード例 #17
0
 public UserNotificationListenerLinux(StatusIcon icon)
 {
     status = icon;
 }