コード例 #1
0
 public void Loging()
 {
     using (var db = new ModelDataContext())
     {
         var user = db.Authorization(Login, Password);
         if (user != null)
         {
             //AuthUser = user;
             //isAuth = true;
             ManagerPage.ChangePage("Main", new Navigation {
                 DataContext = new NavigationViewModel("Teacher", user)
             });
         }
     }
 }