예제 #1
0
        public LoginPage(TadoController model)
        {
            void ExitPage() => Navigation.PopAsync();

            _viewModel     = new LoginPageViewModel(ExitPage, model);
            BindingContext = _viewModel;
            InitializeComponent();
        }
예제 #2
0
        public LoginPageViewModel(Action exitPage, TadoController model)
        {
            _exitPage = exitPage;

            _model   = model;
            Username = model.Username;
            Password = model.Password;

            _loginCommand = new Command(LoginButtonClick, IsLoginSupplied);
        }