Ejemplo n.º 1
0
        private void CreateNew(string cc)
        {
            CounterCategoryInfoOld counterCategoryInfo = new CounterCategoryInfoOld(cc, GetNextCategoryId());

            _catInfo.Add(cc, counterCategoryInfo);
            CountersDatabase.Instance.SaveCounterCategoryInfo(counterCategoryInfo);
        }
Ejemplo n.º 2
0
        public string Map(string cc, string cn, string cs, string ci, string ced)
        {
            CounterCategoryInfoOld counterCategory = _store.GetByName(cc);
            CounterNameInfoOld     counter         = counterCategory.GetCounter(cn);
            CounterSourceInfo      counterSource   = counter.GetSource(cs);
            CounterInstanceInfo    counterInstance = GetInstance(counterCategory, counter, ci);
            CounterExtDataInfo     counterExtData  = GetExtData(counterCategory, counter, ced);

            return(String.Join("|", "s" + counterSource.Id, "i" + counterInstance.Id, "ed" + counterExtData.Id));
        }
 private void CreateNew(string cc)
 {
     CounterCategoryInfoOld counterCategoryInfo = new CounterCategoryInfoOld(cc, GetNextCategoryId());
     _catInfo.Add(cc, counterCategoryInfo);
     CountersDatabase.Instance.SaveCounterCategoryInfo(counterCategoryInfo);
 }