public static DialogResult ShowSettingsDialog(GitUICommands uiCommands, IWin32Window owner, SettingsPageReference initialPage = null) { DialogResult result = DialogResult.None; using (var form = new FormSettings(uiCommands, initialPage)) { AppSettings.UsingContainer(form._commonLogic.RepoDistSettingsSet.GlobalSettings, () => { result = form.ShowDialog(owner); }); } return(result); }
public static DialogResult ShowSettingsDialog(GitUICommands uiCommands, IWin32Window owner, SettingsPageReference initalPage = null) { DialogResult result = DialogResult.None; using (var form = new FormSettings(uiCommands, initalPage)) { AppSettings.UsingContainer(form._commonLogic.RepoDistSettingsSet.GlobalSettings, () => { result = form.ShowDialog(owner); }); } return result; }