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();
 }
Exemple #2
0
 public void DoLogin(User user)
 {
     var lastStat = User.Status;
     instance.User = user;
     if (PropertyChanged != null && lastStat != User._status)
         PropertyChanged(this, new PropertyChangedEventArgs("Status"));
 }