private void RefreshData()
 {
     this.AppraisalRules.DataSource = _ea.GetAllAppraisalRules().ToList();
     this.AppraisalRules.Refresh();
     if (SelectedRuleId != Guid.Empty)
     {
         CurrentRuleConditions.SetData(_ea.GetAllAppraisalRuleConditions(SelectedRuleId));
     }
     else if (this.AppraisalRules.Count == 0)
     {
         CurrentRuleConditions.SetData(null);
     }
 }
 private void RefreshData()
 {
     this.AppraisalRules.DataSource = _emotionalAppraisalAsset.GetAllAppraisalRules().ToList();
     this.AppraisalRules.Refresh();
     if (SelectedRuleId != Guid.Empty)
     {
         this.CurrentRuleConditions.DataSource =
             _emotionalAppraisalAsset.GetAllAppraisalRuleConditions(SelectedRuleId).Set;
     }
     else if (this.AppraisalRules.Count == 0)
     {
         this.CurrentRuleConditions.DataSource = new List <ConditionDTO>();
     }
     this.CurrentRuleConditions.Refresh();
 }