private void EnsureNeedChangeCheckboxStatus(Grid grid)
 {
     if (grid != null)
     {
         CheckBox box = grid.FindChildOfType<CheckBox>().FirstOrDefault<CheckBox>();
         if (box != null)
         {
             this.UnHockCheckBoxCheckedEvent(box);
             bool? isChecked = box.IsChecked;
             bool? nullable2 = isChecked;
             box.IsChecked = nullable2.HasValue ? new bool?(!nullable2.GetValueOrDefault()) : null;
             if (!isChecked.GetValueOrDefault())
             {
                 this.HandleCheckBoxCheckedChangedValue(box.Tag, new System.Action<Guid>(this.accountItemLisViewModel.AddToSelectedItems));
             }
             else
             {
                 this.HandleCheckBoxCheckedChangedValue(box.Tag, new System.Action<Guid>(this.accountItemLisViewModel.RemoveFromSelectedItems));
             }
             this.HockCheckBoxCheckedEvent(box);
         }
     }
 }