public void SelectServerBasedTranslationMemory() { if (Prerequisites.WarnIfServerManager2007NotInstalled()) { return; } var dialog = new ServerBasedDialog(this.Model.LanguagePairs.ToArray(), this.Model.CredentialStore); if (dialog.ShowDialog(this.Form) == DialogResult.OK) { var result = this.Model.SelectServerBasedProvider(dialog.SelectedTranslationMemory); if (result) { this.Form.Close(DialogResult.OK); } else { this.Form.Close(DialogResult.Cancel); } } }