private void btnAchivmentsClick(object sender, EventArgs e) { achiv = new frmAchivment(); achiv.Owner = this; achiv.Show(); btnAchivments.Enabled = false; }
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(); }
private void btnConnectClick(object sender, EventArgs e) { achiv = new frmAchivment(); frmCommunicator playCommu = new frmCommunicator(userName, achiv); playCommu.Owner = this; playCommu.Show(); btnConnect.Enabled = false; }