Example #1
0
 private void chkRemember_CheckedChanged(object sender, EventArgs e)
 {
     if (chkRemember.Checked) // Record username in C:\Temp\remember.json (should really encrypt it).
     {
         UserProfileHelper.userProfile.Remember = UserName;
         UserProfileHelper.SaveUserProfile();
         txt.Text = AppConfigHelper.Password(UserName);
     }
     else // Unchecked
     {
         try
         {
             UserProfileHelper.userProfile.Remember = string.Empty;
             UserProfileHelper.SaveUserProfile();
             txt.Text = string.Empty;
         }
         catch (Exception)
         { }
     }
 }
 public void SaveUserProfile()
 {
     this.UserProfile.LastPlayedFile          = this._srtFile.FileInfo.FullName;
     this.UserProfile.LastPlayedFileTimeTicks = this.ActualTimer.Ticks;
     UserProfileHelper.SaveUserProfile(this.UserProfile);
 }