Пример #1
0
        private void Login()
        {
            ApplicationVM appvm = App.Current.MainWindow.DataContext as ApplicationVM;

            if (Registrated == true)
            {
                TopupVM t = new TopupVM();
                t.Customer = Customer;
                appvm.ChangePage(t);
            }
            else
            {
                MakeErrorLog("Couldn't read card", mname, "Login");
            }
        }
Пример #2
0
        private void Logout()
        {
            ApplicationVM appvm = App.Current.MainWindow.DataContext as ApplicationVM;

            appvm.ChangePage(new LoginVM());
        }