internal static void UpdateOptionModelWithCurrent(UIOptionRootType optionsRoot, bool bAdmin) { OptionMapper mapper = new OptionMapper(optionsRoot); mapper.UpdateOptionModelWithCurrent(bAdmin); }
// This is used only to update the 'internal' sub category onto the viewModel with the internalSubCategory internal static void UpdateInternalSubCategory(MainViewModel viewModel, UIOptionRootType optionsRoot, UIOptionSubCategoryType internalSubCategory) { if ((internalSubCategory == null) || (internalSubCategory.Name != "Internal")) { return; } OptionMapper mapper = new OptionMapper(optionsRoot); UIOptionCategoryType internalCat = optionsRoot.Categories.Find(cat => cat.Name == "Internal"); mapper.UpdateInternalSubCategory(viewModel, internalCat, internalSubCategory); }
internal static void OptionModelToUIModel(MainViewModel viewModel, UIOptionRootType optionsRoot) { OptionMapper mapper = new OptionMapper(optionsRoot); mapper.OptionModelToUIModel(viewModel); }