Пример #1
0
        private void browseServerButton_Click(object sender, EventArgs e)
        {
            PickServerForm dial = new PickServerForm();
            if (dial.ShowDialog() == DialogResult.OK)
                serverTextBox.Text = dial.ServerName;

            dial.Dispose();
        }
Пример #2
0
        private void browseServerButton_Click(object sender, EventArgs e)
        {
            PickServerForm dial = new PickServerForm();

            if (dial.ShowDialog() == DialogResult.OK)
            {
                serverTextBox.Text = dial.ServerName;
            }

            dial.Dispose();
        }