public GamePlay(ClientNetworkServices network) { InitializeComponent(); serverResult = clientResult = 0; this.network = network; pressedKeys = new List <char>(); ui = new UIService(); network.Disconnected += NetworkDisconnected; network.ServerPressedLetter += NetworkServerPressedLetter; network.NewGame += NetworkNewGame; network.playagain += Networkplayagain; ui.DrawKeyBoard(this, LetterClick); }
public GamePlay(NetworkServices network) { InitializeComponent(); serverResult = clientResult = 0; this.network = network; pressedKeys = new List <char>(); ui = new UIService(); network.ServerStoped += NetworkServerStoped; network.ClientPressedLetter += NetworkClientPressedLetter; network.ClientPlayAgainResponse += NetworkClientPlayAgainResponse; simpleSound = new SoundPlayer(@"tick.wav"); ui.DrawKeyBoard(this, LetterClick); }