Exemplo n.º 1
0
        public DisplayPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, Isqlite sqlite)
            : base(navigationService)
        {
            Title = "Details Page";

            _navigationService = navigationService;
            _pageDialogService = pageDialogService;
            _sqlite            = sqlite;
            conn = _sqlite.GetConnection();
            conn.CreateTable <Registration>();
        }
        public MainPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService, Isqlite sqlite)
            : base(navigationService)
        {
            Title = "Main Page";
            _pageDialogService = pageDialogService;
            _navigationService = navigationService;
            _sqlite            = sqlite;
            conn = _sqlite.GetConnection();
            conn.CreateTable <Registration>();

            SignUpCommand      = new DelegateCommand(SignUp);
            DisplayDataCommand = new DelegateCommand(async() => await DisplayData());
        }