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.º 3
0
        private void AbortClick(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            FormProcess.ShowDialog(this, GitCommandHelpers.AbortRebaseCmd());

            if (!Module.InTheMiddleOfRebase())
                Close();

            EnableButtons();
            patchGrid1.Initialize();
            Cursor.Current = Cursors.Default;
        }
Exemplo n.º 4
0
        private void AbortClick(object sender, EventArgs e)
        {
            using (WaitCursorScope.Enter())
            {
                FormProcess.ShowDialog(this, GitCommandHelpers.AbortRebaseCmd());

                if (!Module.InTheMiddleOfRebase())
                {
                    Close();
                }

                EnableButtons();
                patchGrid1.Initialize();
            }
        }
Exemplo n.º 5
0
        private void AbortClick(object sender, EventArgs e)
        {
            using (WaitCursorScope.Enter())
            {
                FormProcess.ShowDialog(this, process: null, arguments: GitCommandHelpers.AbortRebaseCmd(), Module.WorkingDir, input: null, useDialogSettings: true);

                if (!Module.InTheMiddleOfRebase())
                {
                    Close();
                }

                EnableButtons();
                patchGrid1.Initialize();
            }
        }