GitUI.MergePatch.Apply_Click C# (CSharp) Метод

Apply_Click() приватный Метод

private Apply_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        private void Apply_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(PatchFile.Text) && string.IsNullOrEmpty(PatchDir.Text))
            {
                MessageBox.Show("Please select a patch to apply");
                return;
            }
            Cursor.Current = Cursors.WaitCursor;
            if (PatchFileMode.Checked)
                new FormProcess(GitCommands.GitCommands.PatchCmd(PatchFile.Text)).ShowDialog();
            else
                new FormProcess(GitCommands.GitCommands.PatchDirCmd(PatchDir.Text)).ShowDialog();

            EnableButtons();

            if (!GitCommands.GitCommands.InTheMiddleOfConflictedMerge() && !GitCommands.GitCommands.InTheMiddleOfRebase() && !GitCommands.GitCommands.InTheMiddleOfPatch())
                Close();
            Cursor.Current = Cursors.Default;
        }