Ejemplo n.º 1
0
        public MultiplayerWindow(string name, int row, int col)
        {
            InitializeComponent();

            this.name     = name;
            this.row      = row;
            this.col      = col;
            myPosition    = new Position(0, 0);
            otherPosition = new Position(0, 0);

            int    port = Properties.Settings.Default.ServerPort;
            string ip   = Properties.Settings.Default.ServerIP;

            vm = new MultiplayerVM(this.name, this.row, this.col, port, ip);
            vm.startGame(this.name, this.row, this.col);
            DataContext = vm;
        }