public AddEditPaymentTypeForm(IPaymentCategory paymentCategory)
        {
            InitializeComponent();

            cboPaymentCategories.DataSource = paymentCategory.GetCategories();
            this.Text = Common.TextAdd;
        }
Example #2
0
        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;
        }