Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            buttonArray    = new Button[9];
            buttonArray[0] = button1;
            buttonArray[1] = button2;
            buttonArray[2] = button3;
            buttonArray[3] = button4;
            buttonArray[4] = button5;
            buttonArray[5] = button6;
            buttonArray[6] = button7;
            buttonArray[7] = button8;
            buttonArray[8] = button9;
            proxy          = new ServiceReference1.TictactoeClient(new InstanceContext(this));
            this.Text      = "Tic Tac Toe - " + LoginForm.username;


            proxy.SubscribeToGame();

            proxy.AddPlayerToList(LoginForm.username);

            //label3.Text = LoginForm.username + " has 0 wins";
            //label4.Text = proxy.GetName(LoginForm.username)+" has 0 wins";
        }
Ejemplo n.º 2
0
 public LoginForm()
 {
     InitializeComponent();
     proxy           = new ServiceReference1.TictactoeClient(new InstanceContext(this));
     button1.Enabled = false;
 }