public void Merge() { using (var form = new FormMergeBranch(UICommands, FullPath)) { form.ShowDialog(TreeViewNode.TreeView); } }
/// <summary> /// Merge branch using a dialog to select the branch /// </summary> private void MenuMergeClick(object sender, EventArgs e) { FormMergeBranch mergeBranch = new FormMergeBranch(); if (mergeBranch.ShowDialog() == DialogResult.OK) { App.DoRefresh(); } }
/// <summary>Start Merge dialog, using the specified branch.</summary> /// <param name="owner">Owner of the dialog.</param> /// <param name="branch">Branch to merge into the current branch.</param> public bool StartMergeBranchDialog(IWin32Window owner, string branch) { Func<bool> action = () => { using (var form = new FormMergeBranch(this, branch)) form.ShowDialog(owner); return true; }; return DoActionOnRepo(owner, true, false, PreMergeBranch, PostMergeBranch, action); }
/// <summary> /// Merge branch using a dialog to select the branch /// </summary> private void MenuMergeClick(object sender, EventArgs e) { FormMergeBranch mergeBranch = new FormMergeBranch(); if (mergeBranch.ShowDialog() == DialogResult.OK) App.DoRefresh(); }