Exemple #1
0
        private void connectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var connectInformation = new ConnectForm.ConnectInformation();
            var connectForm = new ConnectForm(connectInformation);
            var dialogResult = connectForm.ShowDialog();

            if (dialogResult == DialogResult.Cancel)
                return;

            ConnectToServer(connectInformation.ServerAddress, connectInformation.Port);
        }
Exemple #2
0
        private void connectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var connectInformation = new ConnectForm.ConnectInformation();
            var connectForm        = new ConnectForm(connectInformation);
            var dialogResult       = connectForm.ShowDialog();

            if (dialogResult == DialogResult.Cancel)
            {
                return;
            }

            ConnectToServer(connectInformation.ServerAddress, connectInformation.Port);
        }