private void _showSettingsLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var model = new ServerSettingsModel(); model.InitFromProjectPath(ProjectFolderPath); using (var dlg = new ServerSettingsDialog(model)) { dlg.ShowDialog(); UpdateDisplay(); } }
private void LaunchCustomUrl(string url) { var model = new ServerSettingsModel(); model.InitFromUri(url); using (var dlg = new ServerSettingsDialog(model)) { if (DialogResult.OK != dlg.ShowDialog()) return; } }
private void _internetStatusLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { DialogResult dlgResult; using(var dlg = new ServerSettingsDialog(_repository.PathToRepo)) { dlgResult = dlg.ShowDialog(); } if (dlgResult == DialogResult.OK) RecheckInternetStatus(); }