Exemple #1
0
 private void btnAchivmentsClick(object sender, EventArgs e)
 {
     achiv       = new frmAchivment();
     achiv.Owner = this;
     achiv.Show();
     btnAchivments.Enabled = false;
 }
Exemple #2
0
 public frmCommunicator(Player userName, frmAchivment achiv)
 {
     InitializeComponent();
     this.userName = userName;
     sck           = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
     sck.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
     this.achiv   = achiv;
     lblMyIp.Text = getLocalIP();
 }
Exemple #3
0
        private void btnConnectClick(object sender, EventArgs e)
        {
            achiv = new frmAchivment();
            frmCommunicator playCommu = new frmCommunicator(userName, achiv);

            playCommu.Owner = this;
            playCommu.Show();
            btnConnect.Enabled = false;
        }