예제 #1
0
 public IExtraFeeCalculator getExtraFeeCalculator()
 {
     if (efCalculator == null)
     {
         try
         {
             string type = typeof(IExtraFeeCalculator).Namespace.ToString() + "." + ConfigurationSettings.AppSettings["ClassName"].ToString();
             efCalculator = (IExtraFeeCalculator)Activator.CreateInstance(Type.GetType(type));
         }
         catch (Exception x)
         {
             MessageBox.Show(x.ToString());
         }
     }
     return(efCalculator);
 }
예제 #2
0
 public int getExtraFeeAmount()
 {
     iefc = CourseFactory.getInstance().getExtraFeeCalculator();
     return(iefc.getExtraAmount(this.getTotal()));
 }