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)); }
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); }