Example #1
0
 public static IncomeTaxRates getInstance()
 {
     if(instance == null)
     {
         instance = new IncomeTaxRates();
     }
     return instance;
 }
Example #2
0
 public static IncomeTaxRates getInstance()
 {
     if (instance == null)
     {
         instance = new IncomeTaxRates();
     }
     return(instance);
 }
Example #3
0
        private IncomeTaxRate getRatesForIncome()
        {
            uint income = 0;

            try
            {
                income = uint.Parse(this.textBoxAnnualSalary.Text);
            }
            catch (FormatException fe)
            {
                Console.WriteLine("annual salary shold be an integer {0}", fe.Message);
            }
            return(IncomeTaxRates.getInstance().getRateForIncome(income));
        }