public AddEditPaymentTypeForm(IPaymentCategory paymentCategory, string paymentCategoryName, string typeName) : this(paymentCategory) { this.Text = Common.TextEdit; txtName.Text = typeName; cboPaymentCategories.Text = paymentCategoryName; }
public AddEditPaymentTypeForm(IPaymentCategory paymentCategory) { InitializeComponent(); cboPaymentCategories.DataSource = paymentCategory.GetCategories(); this.Text = Common.TextAdd; }
public PaymentCategoryForm(Common.MFType mfType, IPaymentCategory paymentCategory) { InitializeComponent(); _paymentCategory = paymentCategory; this.Text = string.Format(this.Text, Common.MFTypes[(int)mfType]); }
public DepartureController(IDeparture departureService, ICity cityService, ICarrier carrierService, IPaymentCategory paymentCategoryService, IVehicle vehicleService, IDistance distanceService, IPriceManager priceManager) { _deparatureService = departureService; _cityService = cityService; _carrierService = carrierService; _paymentCategoryService = paymentCategoryService; _vehicleService = vehicleService; _distanceService = distanceService; _priceService = priceManager; }
public SearchPaymentForm(Common.MFType mfType, IPayment payment, IPaymentCategory paymentCategory, IPaymentType paymentType) { List<IPaymentCategory> paymentCategories; InitializeComponent(); _MFType = mfType; _payment = payment; _paymentType = paymentType; if (mfType == Common.MFType.Expense) { this.Text = string.Format(this.Text, "Expenses"); } else { this.Text = string.Format(this.Text, Common.MFTypes[(int)mfType]); } paymentCategories = paymentCategory.GetCategories(); paymentCategories.Insert(0, paymentCategory.CreateCategory(_ListItemAll)); cboCategories.DataSource = paymentCategories; }