private void GitBinFound_Click(object sender, EventArgs e) { if (!CheckSettingsLogic.SolveLinuxToolsDir()) { MessageBox.Show(this, _linuxToolsShNotFound.Text, _linuxToolsShNotFoundCaption.Text); PageHost.GotoPage(GitSettingsPage.GetPageReference()); return; } MessageBox.Show(this, string.Format(_shCanBeRun.Text, AppSettings.GitBinDir), _shCanBeRunCaption.Text); ////GitBinPath.Text = Settings.GitBinDir; PageHost.LoadAll(); // apply settings to dialog controls (otherwise the later called SaveAndRescan_Click would overwrite settings again) SaveAndRescan_Click(null, null); }
private void GitFound_Click(object sender, EventArgs e) { if (!CheckSettingsLogic.SolveGitCommand()) { MessageBox.Show(this, _solveGitCommandFailed.Text, _solveGitCommandFailedCaption.Text); PageHost.GotoPage(GitSettingsPage.GetPageReference()); return; } MessageBox.Show(this, string.Format(_gitCanBeRun.Text, AppSettings.GitCommandValue), _gitCanBeRunCaption.Text); PageHost.GotoPage(GitSettingsPage.GetPageReference()); SaveAndRescan_Click(null, null); }