예제 #1
0
 private void Login(User user)
 {
     User.CurrentUser.CurrUser.DoLogin(user);
     MainWindow owner = Owner as MainWindow;
     owner.miDoLogin.Visibility = Visibility.Collapsed;
     MenuItem miLogin = owner.miLogin;
     miLogin.DataContext = user;
     miLogin.Visibility = Visibility.Visible;
     this.Close();
 }
예제 #2
0
파일: User.cs 프로젝트: rukpet/CourseWork
 public void DoLogin(User user)
 {
     var lastStat = User.Status;
     instance.User = user;
     if (PropertyChanged != null && lastStat != User._status)
         PropertyChanged(this, new PropertyChangedEventArgs("Status"));
 }