Esempio n. 1
0
        private static void Main()
        {
            Welcome();
            var person = new Person(console, TaxCalaculator.Instance);

            console.WriteLine(person.Info);
            console.WriteLine("Press AnyKey to Exit");
            console.ReadKey();
        }
Esempio n. 2
0
        private char GetPersonGender()
        {
            char input;
            int  fChar = 'f';
            int  mChar = 'm';

            InputMessage("Choose your gender f-female, m-male");

            while (((input = _console.ReadKey()) != fChar && input != mChar))
            {
                _console.WriteLine();
                _console.WriteLine("Choose a proper gender Type f-female, m-male");
            }

            Separator();

            return(input);
        }