/// <summary> /// Provides a deterministic way to create the ManageProductsViewModel property. /// </summary> public static void CreateManageProductsViewModel() { if (manageProductsviewModel == null) { manageProductsviewModel = new ManageProductsViewModel(); } }
/// <summary> /// Provides a deterministic way to delete the ManageProductsViewModel property. /// </summary> public static void ClearManageProductsViewModel() { if (manageProductsviewModel != null) { manageProductsviewModel.Cleanup(); } manageProductsviewModel = null; }