コード例 #1
0
        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());
        }
コード例 #2
0
        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);
        }
コード例 #3
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);
        }