private void WriteCategoryToHeadline(StatisticCategory cat, TextWriter writer)
 {
     foreach (var statName in cat.Items)
     {
         writer.Write(statName);
         writer.Write(";");
     }
 }
 private void WriteStatValues(CharacterSnapshot snap, StatisticCategory cat, TextWriter writer)
 {
     foreach (var statName in cat.Items)
     {
         int statVal = snap.GetStatisticValue(cat, statName);
         writer.Write(statVal);
         writer.Write(";");
     }
 }
Exemple #3
0
 public static void UpdateStatisticCategory(this StatisticCategory statisticCategory, StatisticCategoryViewModel statisticCategoryVm)
 {
     statisticCategory.ID              = statisticCategoryVm.ID;
     statisticCategory.Name            = statisticCategoryVm.Name;
     statisticCategory.Alias           = statisticCategoryVm.Alias;
     statisticCategory.Description     = statisticCategoryVm.Description;
     statisticCategory.ParentID        = statisticCategoryVm.ParentID;
     statisticCategory.HomeFlag        = statisticCategoryVm.HomeFlag;
     statisticCategory.DisplayOrder    = statisticCategoryVm.DisplayOrder;
     statisticCategory.CreatedDate     = statisticCategoryVm.CreatedDate;
     statisticCategory.CreatedBy       = statisticCategoryVm.CreatedBy;
     statisticCategory.UpdatedBy       = statisticCategoryVm.UpdatedBy;
     statisticCategory.UpdatedDate     = statisticCategoryVm.UpdatedDate;
     statisticCategory.MetaKeyword     = statisticCategoryVm.MetaKeyword;
     statisticCategory.MetaDescription = statisticCategoryVm.MetaDescription;
     statisticCategory.Status          = statisticCategoryVm.Status;
 }
Exemple #4
0
 public void Update(StatisticCategory statisticCategory)
 {
     _statisticCategoryRepository.Update(statisticCategory);
 }
Exemple #5
0
 public void Add(StatisticCategory statisticCategory)
 {
     _statisticCategoryRepository.Add(statisticCategory);
 }