Ejemplo n.º 1
0
 private void btnAchivmentsClick(object sender, EventArgs e)
 {
     achiv       = new frmAchivment();
     achiv.Owner = this;
     achiv.Show();
     btnAchivments.Enabled = false;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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;
        }