Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text.Length > 0)
     {
         InitializeServer();
         PlayerInformation info = new PlayerInformation();
         info.Name = Shared.SharedCode.CurrentPlayer.Name;
         connection.SetServerInformation(info, SyncFlags.ClientInformation);
         this.DialogResult = DialogResult.OK;
     }
     else
     {
         MessageBox.Show("Введите название сессии",
                         "", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
 }