public HistoryBetween(List <string> data, ClientCallback cc, GameServiceClient gsc) { InitializeComponent(); callback = cc; client = gsc; player1ComboBox.ItemsSource = data; player2ComboBox.ItemsSource = data; }
public SearchInfo(ClientCallback cc, GameServiceClient gsc) { InitializeComponent(); callback = cc; client = gsc; options = new List <string> { "Username", "Number of Games", "Number of Wins", "Number of Losses", "Number of Points" }; sortingOpt.ItemsSource = options; }
public WaitingForGame(string name, ClientCallback clientCallback, GameServiceClient connectionToServer) { this.userName = name; this.clientCallback = clientCallback; this.connectionToServer = connectionToServer; InitializeComponent(); userList = connectionToServer.GetAvliableClientsForUser(this.userName).Keys.ToList(); listOfAvliablePlayers.Items.Clear(); listOfAvliablePlayers.ItemsSource = null; listOfAvliablePlayers.ItemsSource = connectionToServer.GetAvliableClientsForUser(this.userName).Keys.ToList(); usrName.Content = "Hello " + name; initDelegates(); }
public GameWindow(string userName, string selectPlayer, GameServiceClient connectionToServer, ClientCallback clientCallback, WaitingForGame waitingForGame) { this.actualPlayer = userName; this.selectedPlayer = selectPlayer; this.gameServer = connectionToServer; this.clientCallback = clientCallback; this.clientCallback.playerMove += playerMove; this.watingWindow = waitingForGame; this.board = new char[ROW, COL]; initBoard(); initMaps(); InitializeComponent(); pvsp.Content = userName + " VS " + selectPlayer; }
public MainWindow() { InitializeComponent(); callback = new ClientCallback(); client = new GameServiceClient(new InstanceContext(callback)); }
public Register(ClientCallback cc, GameServiceClient gsc) { InitializeComponent(); callback = cc; client = gsc; }