private void SaveActiveUserOnDisk(UserSetting active)
 {
      if (active != null)
     {
         MyHelper.SerializeObject(active, Path.Combine(FB_Image.RelativeDirectory, FB_Image.UserSettingDir , active.UserID),true);
     }
 }
        private void UpdateLoginControl(UserSetting r)
        {
            if (r != null)
            {

                Form1.ActiveUser = r;
                ActiveUser.AccessToken = r.AccessToken;
                pBoxUserAvatar.ImageLocation = r.ImgPath;
                lbLoginUserName.Text = r.UserName;
                lbLoginID.Text = r.UserID;
                lbPrivateAlbum.Text = r.PrivateAlbumName;
                lbLoginPrivateAlbum.Text = r.PrivateAlbumName;
                isLogin = true;
                btnFacebookLogin.Text = "LogOut";
                if (ActiveUser.Albums.Count == 0)
                {
                    ActiveUser.Albums = CreateAlbum.GetUserAlbumsForComboBox(ActiveUser.AccessToken, "all");
                }
                cmbInputAlbum.DataSource = ActiveUser.Albums;
                cmbInputAlbum.DisplayMember = "Name";
                cmbInputAlbum.ValueMember = "ID";

            }
        }