public AdminPageGridViewModel()
        {
            BusinessRulesColl = new ObservableCollection <ServiceReference1.BusinessRulesDTO>();
            BusinessRules     = new ObservableCollection <ServiceReference1.BusinessRulesDTO>();

            DeleteRuleCommand    = new Command(DeleteBusinessRule);
            currentGridIndicator = "BusinessRules";
            LoadData();
            GetAllTargetData();
            if (KPItargetCollection != null && KPItargetCollection.Count() > 0)
            {
                selectedKpiIndex = 0;
                KPItargets       = new ObservableCollection <ServiceReference1.KpiDTO>();
            }
            ActiveTab = 0;
        }
        public ICollection <object> GetKpiTargetsGridRecordsBy(uint StartingIndex, uint NumberOfRecords, object FilterTag)
        {
            if (KPItargetCollection != null)
            {
                if (StartingIndex >= KPItargetCollection.Count())
                {
                    return(new List <object>());
                }

                List <ServiceReference1.KpiDTO> result = new List <ServiceReference1.KpiDTO>();

                for (int i = (int)StartingIndex; i < KPItargetCollection.Count() && i < StartingIndex + NumberOfRecords; i++)
                {
                    result.Add(KPItargetCollection[i]);
                }

                return(result.ToList <object>());
            }

            return(null);
        }
 public uint GetKPiTargetsTotalCount()
 {
     return((uint)(KPItargetCollection != null ? KPItargetCollection.Count() : 0));
 }