Exemplo n.º 1
0
 private void Abort_Click(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     FormProcess.ShowDialog(this, GitCommandHelpers.AbortCmd());
     EnableButtons();
     Cursor.Current = Cursors.Default;
 }
        private void AbortButton_Click(object sender, EventArgs e)
        {
            if (Form is null)
            {
                return;
            }

            switch (_action)
            {
            case GitAction.Rebase:
                FormProcess.ShowDialog(Form, GitCommandHelpers.AbortRebaseCmd());
                break;

            case GitAction.Merge:
                FormProcess.ShowDialog(Form, GitCommandHelpers.AbortMergeCmd());
                break;

            case GitAction.Patch:
                FormProcess.ShowDialog(Form, GitCommandHelpers.AbortCmd());
                break;

            default:
                return;
            }

            Form.UICommands.RepoChangedNotifier.Notify();
        }
        private void AbortButton_Click(object sender, EventArgs e)
        {
            if (Form is null)
            {
                return;
            }

            switch (_action)
            {
            case GitAction.Rebase:
                FormProcess.ShowDialog(Form, process: null, arguments: GitCommandHelpers.AbortRebaseCmd(), Module.WorkingDir, input: null, useDialogSettings: true);
                break;

            case GitAction.Merge:
                FormProcess.ShowDialog(Form, process: null, arguments: GitCommandHelpers.AbortMergeCmd(), Module.WorkingDir, input: null, useDialogSettings: true);
                break;

            case GitAction.Patch:
                FormProcess.ShowDialog(Form, process: null, arguments: GitCommandHelpers.AbortCmd(), Module.WorkingDir, input: null, useDialogSettings: true);
                break;

            default:
                return;
            }

            Form.UICommands.RepoChangedNotifier.Notify();
        }
Exemplo n.º 4
0
 private void Abort_Click(object sender, EventArgs e)
 {
     using (WaitCursorScope.Enter())
     {
         FormProcess.ShowDialog(this, GitCommandHelpers.AbortCmd());
         EnableButtons();
     }
 }
Exemplo n.º 5
0
 private void Abort_Click(object sender, EventArgs e)
 {
     using (WaitCursorScope.Enter())
     {
         FormProcess.ShowDialog(this, process: null, arguments: GitCommandHelpers.AbortCmd(), Module.WorkingDir, input: null, useDialogSettings: true);
         EnableButtons();
     }
 }