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

            manageProductsviewModel = null;
        }