示例#1
0
        //Ensures that we have only one instance of the StoreEngine class
        public static StoreEngine GetEngine()
        {
            if (_instance == null)
            {
                _instance = new StoreEngine();
            }

            return(_instance);
        }
示例#2
0
        static void Main(string[] args)
        {
            //Valyo-menu
            //Simo-storage, interface
            //Ina-dokumentaciq, konstructori za vseki klas-Laptop, smart phone, configuration, product
            //Angela-exception classes Exception class-Out of storage, Invalid Input, konstruktori-parts, HDD, RAM, CPU

            StoreEngine engine = GetEngine();

            engine.Initialize();
            engine.Run();
        }