Esempio n. 1
0
        public Form1()
        {
            InitializeComponent();

            this.panelGame.Visible = false;
            this.panelMain.Visible = true;
            this.pictureBoxList = new List<PictureBox>();

            Leo = new Player(01,"Leo");
            proxy = new ServiceReference1.ChatClient(new InstanceContext(this));
        }
Esempio n. 2
0
        public Battle_Ship(Game game, string username, string opponent)
        {
            InitializeComponent();
            this.type = 0;

            proxy2 = new ServiceReference1.ChatClient(new InstanceContext(this));

            this.lbName.Text = username + " !";
            this.Playername = username;
            this.Opponent = opponent;
            proxy2.StartChatSession(Playername);
        }