Beispiel #1
0
        }                           //기본생성자

        public static CalcManager SingleTon()
        {
            if (calcInstance == null)
            {
                calcInstance = new CalcManager();
            }

            return(calcInstance);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            CalcManager manager = CalcManager.SingleTon();
            int         select;

            while (true)
            {
                while (true)
                {
                    manager.MainView();
                    try
                    {
                        select = int.Parse(Console.ReadLine());
                        switch (select)
                        {
                        }
                    }
                    catch (Exception err)
                    {
                        Console.WriteLine(err.Message);
                    }
                }
            }
        }