public static bool Configure(IWin32Window parent, BuildServer server) { ConfigureServer configureDialog = new ConfigureServer(server); bool hasChanged = (configureDialog.ShowDialog(parent) == DialogResult.OK); return(hasChanged); }
private void butConfigure_Click(object sender, EventArgs e) { if (selectedServer == null) { MessageBox.Show(this, "Please select a server first", "Unable to configure", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { if (ConfigureServer.Configure(this, selectedServer)) { var server = this.cruiseServerManagerFactory.Create(selectedServer); server.Logout(); RetrieveListOfProjects(selectedServer); SetSecurityIcon(lbServer.SelectedItems[0], selectedServer); } } }
public static bool Configure(IWin32Window parent, BuildServer server) { ConfigureServer configureDialog = new ConfigureServer(server); bool hasChanged = (configureDialog.ShowDialog(parent) == DialogResult.OK); return hasChanged; }