コード例 #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>();
        }
コード例 #2
0
        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());
        }