static void Main(string[] args) { //ConsoleInteratctiveMenu.ConsoleRead(labelInput); //ProcessString processString = new ProcessString("String","Testing String!!!"); //ProcessResult resultExecution = processString.Run(); //resultExecution.ErrorSuccesMessage(); ProcessPerson processPerson = new ProcessPerson(); Console.WriteLine("===================================="); ProcessResult resultExecution; resultExecution = processPerson.Run(); ConsoleInteratctiveMenu.ConsoleWrite("Process person", processPerson.PID.ToString()); Console.WriteLine("------------------------------------"); resultExecution = processPerson.Run(); resultExecution.ErrorSuccesMessage(); Console.WriteLine("===================================="); ProcessPersonException processPersonException = new ProcessPersonException(); processPersonException.Run(); Console.ReadKey(); }
public override void PreProcessingProcess(ProcessResult processResult) { //Verificare la Intrare this.person.FirstName = ConsoleInteratctiveMenu.ConsoleRead("FirstName"); this.person.LastName = ConsoleInteratctiveMenu.ConsoleRead("LastName"); this.person.Age = Convert.ToInt32(ConsoleInteratctiveMenu.ConsoleRead("Age")); //person = new Person(firstName, lastName, age); }
static void Main(string[] args) { //ProcessCore procesCore = new ProcessCore(); ConsoleInteratctiveMenu mainMenu = new ConsoleInteratctiveMenu(); mainMenu.RunMenu(); Console.ReadKey(); }
public override void ProcessingProcess(ProcessResult processResult) { ConsoleInteratctiveMenu.ConsoleWrite(this.Label, this.Text + " " + base.PID.ToString()); processResult.StatusFlag = true; }
public override void PostProcessingProcess(ProcessResult processResult) { ConsoleInteratctiveMenu.ConsoleWrite("Person NO. ", Person.populationCount.ToString() + " " + base.PID.ToString()); }