コード例 #1
0
 public AddEditPaymentTypeForm(IPaymentCategory paymentCategory, string paymentCategoryName, string typeName)
     : this(paymentCategory)
 {
     this.Text = Common.TextEdit;
     txtName.Text = typeName;
     cboPaymentCategories.Text = paymentCategoryName;
 }
コード例 #2
0
        public AddEditPaymentTypeForm(IPaymentCategory paymentCategory)
        {
            InitializeComponent();

            cboPaymentCategories.DataSource = paymentCategory.GetCategories();
            this.Text = Common.TextAdd;
        }
コード例 #3
0
        public PaymentCategoryForm(Common.MFType mfType, IPaymentCategory paymentCategory)
        {
            InitializeComponent();

            _paymentCategory = paymentCategory;

            this.Text = string.Format(this.Text, Common.MFTypes[(int)mfType]);
        }
コード例 #4
0
 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;
 }
コード例 #5
0
ファイル: SearchPaymentForm.cs プロジェクト: cv1973/MoneyFlow
        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;
        }