private string serverAddress = "localhost:12000"; //string.Empty; private void setAddress_Click(object sender, EventArgs e) { using (AskForServer dialog = new AskForServer(this.serverAddress)) { DialogResult status = dialog.ShowDialog(); if (status == DialogResult.OK) { // Update current server address. this.serverAddress = dialog.Address; } } }
private void setAddress_Click(object sender, EventArgs e) { using(AskForServer dialog = new AskForServer(this.serverAddress)) { DialogResult status = dialog.ShowDialog(); if(status == DialogResult.OK) { // Update current server address. this.serverAddress = dialog.Address; } } }