public void ShowDefaultPoliciesDialog(Gtk.Window parentWindow, string panelId) { if (parentWindow == null) { parentWindow = IdeApp.Workbench.RootWindow; } var ops = new DefaultPolicyOptionsDialog(parentWindow); try { if (panelId != null) { ops.SelectPanel(panelId); } MessageService.RunCustomDialog(ops, parentWindow); } finally { ops.Destroy(); } }
public void ShowDefaultPoliciesDialog(Window parentWindow, string panelId) { if (parentWindow == null) { parentWindow = IdeServices.DesktopService.GetFocusedTopLevelWindow(); } var ops = new DefaultPolicyOptionsDialog(parentWindow); try { if (panelId != null) { ops.SelectPanel(panelId); } MessageService.RunCustomDialog(ops, parentWindow); } finally { ops.Destroy(); ops.Dispose(); } }
public void ShowDefaultPoliciesDialog(Gtk.Window parentWindow, string panelId) { if (parentWindow == null) { parentWindow = IdeApp.Workbench.RootWindow; } var ops = new DefaultPolicyOptionsDialog(parentWindow); try { if (panelId != null) { ops.SelectPanel(panelId); } if (MessageService.RunCustomDialog(ops, parentWindow) == (int)Gtk.ResponseType.Ok) { MonoDevelop.Projects.Policies.PolicyService.SaveDefaultPolicies(); } } finally { ops.Destroy(); } }