public static ConstructorModel Get()
        {
            ConstructorModel result = null;

            SessionManager sm = new SessionManager();

            object CachedConstructorModel = sm.Get("ConstructorModel");
            if (CachedConstructorModel != null)
            {
                result = CachedConstructorModel as ConstructorModel;
            }
            else
            {
                result = new ConstructorModel();

                sm.Set("ConstructorModel", result);
            }

            return result;
        }
Esempio n. 2
0
        public static EcoModel Get()
        {
            EcoModel result = null;

            SessionManager sm = new SessionManager();

            object CachedEcoModel = sm.Get("EcoModel");
            if (CachedEcoModel != null)
            {
                result = CachedEcoModel as EcoModel;
            }
            else
            {
                result = new EcoModel();

                sm.Set("EcoModel", result);
            }

            return result;
        }
Esempio n. 3
0
        public static PaletteModel Get()
        {
            PaletteModel result = null;

            SessionManager sm = new SessionManager();

            object CachedClothPaletteModel = sm.Get("ClothPaletteModel");
            if (CachedClothPaletteModel != null)
            {
                result = CachedClothPaletteModel as PaletteModel;
            }
            else
            {
                result = new PaletteModel();

                sm.Set("ClothPaletteModel", result);
            }

            return result;
        }