protected override void Run ()
		{
			CommonAboutDialog dlg = new CommonAboutDialog ();
			dlg.TransientFor = IdeApp.Workbench.RootWindow;
			try {
				dlg.Run ();
			}
			finally {
				dlg.Destroy ();
			}
		}
Beispiel #2
0
		protected override void Run ()
		{
			var dlg = new CommonAboutDialog ();
			try {
				MessageService.PlaceDialog (dlg, null);
				dlg.Run ();
			}
			finally {
				dlg.Destroy ();
			}
		}
        public static void ShowAboutDialog()
        {
            if (Platform.IsMac)
            {
                if (instance == null)
                {
                    instance = new CommonAboutDialog();
                    MessageService.PlaceDialog(instance, IdeApp.Workbench.RootWindow);
                    instance.Response += delegate {
                        instance.Destroy();
                        instance = null;
                    };
                }
                instance.Present();
                return;
            }

            MessageService.ShowCustomDialog(new CommonAboutDialog());
        }
        public static void ShowAboutDialog()
        {
            if (Platform.IsMac)
            {
                if (instance == null)
                {
                    instance = new CommonAboutDialog();
                    MessageService.PlaceDialog(instance, WelcomePage.WelcomePageService.WelcomeWindow ?? IdeApp.Workbench.RootWindow);
                    instance.Response += delegate {
                        instance.Destroy();
                        instance.Dispose();
                        instance = null;
                    };
                }

                instance.Present();
                return;
            }

            using (var dlg = new CommonAboutDialog())
                MessageService.ShowCustomDialog(dlg);
        }
Beispiel #5
0
        public static void ShowAboutDialog()
        {
            if (Platform.IsMac)
            {
                if (instance == null)
                {
                    var parent = IdeServices.DesktopService.GetFocusedTopLevelWindow();
                    instance = new CommonAboutDialog();
                    instance.ShowAll();
                    MessageService.PlaceDialog(instance, parent);
                    instance.Response += delegate {
                        instance.Destroy();
                        instance.Dispose();
                        instance = null;
                    };
                }

                instance.Present();
                return;
            }

            using (var dlg = new CommonAboutDialog())
                MessageService.ShowCustomDialog(dlg);
        }
		public static void ShowAboutDialog ()
		{
			if (Platform.IsMac) {
				if (instance == null) {
					instance = new CommonAboutDialog ();
					MessageService.PlaceDialog (instance, IdeApp.Workbench.RootWindow);
					instance.Response += delegate {
						instance.Destroy ();
						instance.Dispose ();
						instance = null;
					};
				}
				instance.Present ();
				return;
			}

			using (var dlg = new CommonAboutDialog ())
				MessageService.ShowCustomDialog (dlg);
		}