Пример #1
0
 public void Merge()
 {
     using (var form = new FormMergeBranch(UICommands, FullPath))
     {
         form.ShowDialog(TreeViewNode.TreeView);
     }
 }
Пример #2
0
        /// <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();
            }
        }
Пример #3
0
        /// <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);
        }
Пример #4
0
 /// <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();
 }