GitUI.FormProcess.ReadDialog C# (CSharp) Метод

ReadDialog() публичный статический Метод

public static ReadDialog ( GitUI.GitModuleForm owner, string arguments ) : string
owner GitUI.GitModuleForm
arguments string
Результат string
        public static string ReadDialog(GitModuleForm owner, string arguments)
        {
            return ReadDialog(owner, null, arguments, owner.Module, null, true);
        }

Same methods

FormProcess::ReadDialog ( IWin32Window owner, string process, string arguments, GitModule module, string input, bool useDialogSettings ) : string

Usage Example

Пример #1
0
        private void OkClick(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            if (string.IsNullOrEmpty(Branches.Text))
            {
                MessageBox.Show(this, _noBranchSelectedText.Text);
                return;
            }

            var rebaseCmd    = GitCommandHelpers.RebaseCmd(Branches.Text, chkInteractive.Checked, chkPreserveMerges.Checked, chkAutosquash.Checked);
            var dialogResult = FormProcess.ReadDialog(this, rebaseCmd);

            if (dialogResult.Trim() == "Current branch a is up to date.")
            {
                MessageBox.Show(this, _branchUpToDateText.Text, _branchUpToDateCaption.Text);
            }

            if (!GitModule.Current.InTheMiddleOfConflictedMerge() &&
                !GitModule.Current.InTheMiddleOfRebase() &&
                !GitModule.Current.InTheMiddleOfPatch())
            {
                Close();
            }

            EnableButtons();
            patchGrid1.Initialize();
            Cursor.Current = Cursors.Default;
        }
All Usage Examples Of GitUI.FormProcess::ReadDialog