예제 #1
0
 public MenuInicial()
 {
     InitializeComponent();
     serverUdp = new ServerUdp(this);
     HabilitaBotoes();
     this.connect = false;
     this.foiConvidado = false;
 }
예제 #2
0
 public void IniciaUdp()
 {
     serverUdp = new ServerUdp(this);
     gb_Config.Enabled = false;
     serverUdp.IniciaEscuta(txb_Nome.Text, txb_Apelido.Text);
     serverUdp.EnviaBroadcastRede();
     HabilitaBotoes();
     ltb_JogOn.Items.Clear();
     //ativa a porra do botao para convidar os jogadores.
     gb_Convite.Enabled = true;
     gb_Convite.Visible = true;
     btn_Convida.Enabled = true;
 }