public static ReadDialog ( GitUI.GitModuleForm owner, string arguments ) : string | ||
owner | GitUI.GitModuleForm | |
arguments | string | |
Résultat | string |
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; }
private void Cleanup_Click(object sender, EventArgs e) { if (MessageBox.Show(this, _reallyCleanupQuestion.Text, _reallyCleanupQuestionCaption.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { var cleanUpCmd = GitCommandHelpers.CleanUpCmd(false, RemoveDirectories.Checked, RemoveNonIgnored.Checked, RemoveIngnored.Checked); PreviewOutput.Text = FormProcess.ReadDialog(this, cleanUpCmd); } }
private void UpdateLostObjects() { Cursor.Current = Cursors.WaitCursor; var dialogResult = FormProcess.ReadDialog(this, "fsck-objects" + GetOptions()); if (FormProcess.IsOperationAborted(dialogResult)) { DialogResult = DialogResult.Abort; return; } lostObjects.Clear(); lostObjects.AddRange(dialogResult .Split('\r', '\n') .Where(s => !string.IsNullOrEmpty(s)) .Select <string, LostObject>((s) => LostObject.TryParse(Module, s)) .Where(parsedLostObject => parsedLostObject != null)); UpdateFilteredLostObjects(); Cursor.Current = Cursors.Default; }
private void Preview_Click(object sender, EventArgs e) { var cleanUpCmd = GitCommandHelpers.CleanUpCmd(true, RemoveDirectories.Checked, RemoveNonIgnored.Checked, RemoveIngnored.Checked); PreviewOutput.Text = FormProcess.ReadDialog(this, cleanUpCmd); }