public AddInvoiceDetailForm(int _id, InvoiceDetailForm owner)
        {
            InitializeComponent();
            invoiceId = _id;
            parent    = owner;
            BLInvoiceDetail bLInvoiceDetail = new BLInvoiceDetail();

            cmbItem.DataSource    = bLInvoiceDetail.GetItem();
            cmbItem.DisplayMember = "ItemName";
        }
Beispiel #2
0
        public UpdateInvoiceDetailForm(int _invoiceId, int _invoiceDetailId, InvoiceDetailForm owner)
        {
            InitializeComponent();
            invoiceId       = _invoiceId;
            invoiceDetailId = _invoiceDetailId;
            parent          = owner;
            BLInvoiceDetail bLInvoiceDetail = new BLInvoiceDetail();

            cmbItem.DataSource    = bLInvoiceDetail.GetItem();
            cmbItem.DisplayMember = "ItemName";
            cmbItem.SelectedIndex = -1;
        }