예제 #1
0
 // $G$ DSN-999 (-5) The Main method should only be an access point to the program. Should look something like:
 // public static void Main() { Run(); }
 public static void Main()
 {
     try
     {
         GarageManagerUI.Run();
     }
     catch (FormatException exception)
     {
         UserInputOutput.ClearScreen();
         GarageManagerUI.WriteErrorMsg();
         UserInputOutput.WriteLine(exception.ToString());
     }
     catch (ArgumentException exception)
     {
         UserInputOutput.ClearScreen();
         GarageManagerUI.WriteErrorMsg();
         Console.WriteLine(exception.ToString());
     }
     catch (GarageLogic.ValueOutOfRangeException exception)
     {
         UserInputOutput.ClearScreen();
         GarageManagerUI.WriteErrorMsg();
         UserInputOutput.WriteLine(exception.ToString());
     }
     catch (Exception exception)
     {
         UserInputOutput.ClearScreen();
         GarageManagerUI.WriteErrorMsg();
         UserInputOutput.WriteLine(exception.ToString());
     }
 }
예제 #2
0
        private static void InsertNewVehicleParser()
        {
            Messages.askForVehicleType();
            int i_input = GarageManagerUI.ReciveInputAsInt();

            if (i_input == GarageTypesParser.sr_VehicleTypesDic.Count() + 1)
            {
                m_StayInMethod = false;
            }
            else
            {
                Console.Clear();
                eVehicleType o_TypeOfVehicle = r_UIGarageTypesParser.parseVehicleType(i_input);
                GarageManagerUI.receiveInputsAndCreateNewVehicle(o_TypeOfVehicle);
            }
        }
예제 #3
0
        public static void Main(string[] i_Args)
        {
            GarageManagerUI garageManagerUi = new GarageManagerUI();

            garageManagerUi.StartManageGarage();
        }
예제 #4
0
 static void Main()
 {
     GarageManagerUI.RunGarageManager();
 }