Пример #1
0
 void AutoLogin()
 {
     if (Settings.AppState.LastPhone > 0 && !string.IsNullOrEmpty(Settings.AppState.LastPin) && Settings.AppState.LastLoginDate.Date == DateTime.Today)
     {
         PhoneTB.Text   = PhoneHelper.FormattedPhoneNumber(Settings.AppState.LastPhone.ToString());
         PassTB.Text    = Settings.AppState.LastPin;
         autoLogin      = true;
         lastOnline     = Settings.AppState.LastOnline;
         lastCrewTypeId = Settings.AppState.LastCrewTypeId;
         AcceptButton_Clicked(null, null);
     }
 }