Exemple #1
0
 public void ResetLogin()
 {
     currUserFullname = String.Empty;
     currStyle        = UserStyle.Диспетчер;
     currWorked       = false;
     foreach (Form pan in panels)
     {
         IUpdateStatusPanel pm = (IUpdateStatusPanel)pan;
         pm.UpdateUserLogged("Нет регистрации");
         pm.UpdateTuningMenu(false);
     }
 }
Exemple #2
0
 public void LoginUser(string fullname, string shortname, UserStyle style)
 {
     currUserFullname = fullname;
     currStyle        = style;
     currWorked       = true;
     foreach (Form pan in panels)
     {
         IUpdateStatusPanel pm = (IUpdateStatusPanel)pan;
         pm.UpdateUserLogged(shortname);
         pm.UpdateTuningMenu(true);
     }
 }