private void Login()
        {
            ApplicationVM appvm = App.Current.MainWindow.DataContext as ApplicationVM;

            ApplicationVM.token = GetToken();

            if (!ApplicationVM.token.IsError)
            {
                appvm.ChangePage(new PageTwoVM());
            }
            else
            {
                Error = "Username and/or password doesn't match";
            }
        }
Exemple #2
0
        private void SignOut()
        {
            ApplicationVM appvm = App.Current.MainWindow.DataContext as ApplicationVM;

            appvm.ChangePage(new LoginVM());
        }