예제 #1
0
        private void Join_Callback(object parameter = null)
        {
            var view = new Views.JoinGameSummary();
            var vm   = view.BindingContext as vmJoinGameSummary;

            vm.Player = new Guest()
            {
                Name = Name, EndPoint = new IPEndPoint(IpAddress, Port)
            };
            ShowPage(view);
        }
예제 #2
0
        private void Join_Callback(object parameter = null)
        {
            var view = new Views.JoinGameSummary();
            var vm   = view.DataContext as vmJoinGameSummary;

            vm.Previously = this;
            vm.Player     = new PlayerInformation()
            {
                Name     = Name,
                EndPoint = new IPEndPoint(IpAddress, Port)
            };
            vm.SetupCommunications();

            ShowContent(view);
        }