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); }
public int getExtraFeeAmount() { iefc = CourseFactory.getInstance().getExtraFeeCalculator(); return(iefc.getExtraAmount(this.getTotal())); }