예제 #1
0
        static void Main(string[] args)
        {
            // Create new instance of
            TemperatureConverter temperatureConverter = new TemperatureConverter();

            temperatureConverter.Start();
        }
예제 #2
0
        static void Main()
        {
            Console.Title = "Temperature converter";

            TemperatureConverter obj = new TemperatureConverter();

            obj.Start();
        }
예제 #3
0
        /// <summary>
        /// Startmethod that starts other methods and takes input from the user.
        /// </summary>
        public void Start()
        {
            int choice = -1;

            while (choice != 0)
            {
                WriteMenuText();

                choice = Input.ReadIntegerConsole();

                switch (choice)
                {
                case 1:
                {
                    WholeNumbersForAdd sumObj = new WholeNumbersForAdd();
                    sumObj.Start();


                    break;
                }

                case 2:
                {
                    FloatingNumbersWhileAdd sumObj = new FloatingNumbersWhileAdd();
                    sumObj.Start();
                    break;
                }

                case 3:
                {
                    CurrencyConverter sumObj = new CurrencyConverter();
                    sumObj.Start();
                    break;
                }

                case 4:
                {
                    WorkingSchedule WorkObj = new WorkingSchedule();
                    WorkObj.Start();
                    break;
                }

                case 5:
                {
                    TemperatureConverter TempObj = new TemperatureConverter();
                    TempObj.Start();
                    break;
                }
                }
            }
        }
        /// <summary>
        /// method Main
        /// The Main method is the entry point for the program
        /// The user console is arranged for cosmetic effects
        /// This simple method declares and instantiates a TemperatureConverter object
        /// The rest of the program then runs through the Start method of the object
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //Arrange the Console Window
            Console.BackgroundColor = ConsoleColor.Gray;
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Blue;
            Console.Title           = "Temperature Converter";

            // Declare and instantiate a TemperatureConverter object
            TemperatureConverter myTemperatures = new TemperatureConverter();

            // Run the Start method in the TemperatureConverter object
            myTemperatures.Start();

            // Print out Exit Message to User
            Console.WriteLine("Press Enter to Exit Console Window");

            // Wait for the User Input
            Console.ReadLine();
        } // End of Main
예제 #5
0
        /// <summary>
        /// This is the starting point for running this application
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            TemperatureConverter tempCon = new TemperatureConverter();

            tempCon.Start(true);
        }