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); }
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); }