private void ShelveButtonClick(object sender, EventArgs e) { if (string.IsNullOrEmpty(NameTextBox.Text)) { return; } _settings.Name = NameTextBox.Text; _settings.Overwrite = OverwriteCheckBox.Checked; _commands.StartGitTfsCommandProcessDialog("shelve", OverwriteCheckBox.Checked ? "-f " : "", NameTextBox.Text); Close(); }
private void PullButtonClick(object sender, EventArgs e) { if (PullRadioButton.Checked) { _settings.PullSetting = PullSetting.Pull; if (!_commands.StartGitTfsCommandProcessDialog("pull", "--remote " + TfsRemoteComboBox.Text)) { _commands.StartResolveConflictsDialog(); } } else if (RebaseRadioButton.Checked) { _settings.PullSetting = PullSetting.Rebase; _commands.StartGitTfsCommandProcessDialog("fetch", "--remote " + TfsRemoteComboBox.Text); _commands.StartRebaseDialog("tfs/" + TfsRemoteComboBox.Text); } else if (FetchRadioButton.Checked) { _settings.PullSetting = PullSetting.Fetch; _commands.StartGitTfsCommandProcessDialog("fetch", "--remote " + TfsRemoteComboBox.Text); } }