コード例 #1
0
 public HistoryBetween(List <string> data, ClientCallback cc, GameServiceClient gsc)
 {
     InitializeComponent();
     callback = cc;
     client   = gsc;
     player1ComboBox.ItemsSource = data;
     player2ComboBox.ItemsSource = data;
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 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();
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 public MainWindow()
 {
     InitializeComponent();
     callback = new ClientCallback();
     client   = new GameServiceClient(new InstanceContext(callback));
 }
コード例 #6
0
 public Register(ClientCallback cc, GameServiceClient gsc)
 {
     InitializeComponent();
     callback = cc;
     client   = gsc;
 }