// $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()); } }
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); } }
public static void Main(string[] i_Args) { GarageManagerUI garageManagerUi = new GarageManagerUI(); garageManagerUi.StartManageGarage(); }
static void Main() { GarageManagerUI.RunGarageManager(); }