Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
        static void Main(string[] args)
        {
            //ProcessCore procesCore = new ProcessCore();

            ConsoleInteratctiveMenu mainMenu = new ConsoleInteratctiveMenu();

            mainMenu.RunMenu();

            Console.ReadKey();
        }
Esempio n. 4
0
 public override void ProcessingProcess(ProcessResult processResult)
 {
     ConsoleInteratctiveMenu.ConsoleWrite(this.Label, this.Text + " " + base.PID.ToString());
     processResult.StatusFlag = true;
 }
Esempio n. 5
0
 public override void PostProcessingProcess(ProcessResult processResult)
 {
     ConsoleInteratctiveMenu.ConsoleWrite("Person NO. ", Person.populationCount.ToString() + " " + base.PID.ToString());
 }