Пример #1
0
		internal static void UpdateOptionModelWithCurrent(UIOptionRootType optionsRoot, bool bAdmin)
		{
			OptionMapper mapper = new OptionMapper(optionsRoot);
			mapper.UpdateOptionModelWithCurrent(bAdmin);
		}
Пример #2
0
		// 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);
		}
Пример #3
0
		internal static void OptionModelToUIModel(MainViewModel viewModel, UIOptionRootType optionsRoot)
		{
			OptionMapper mapper = new OptionMapper(optionsRoot);
			mapper.OptionModelToUIModel(viewModel);
		}