Esempio n. 1
0
        private void bbtniILAddInvoice_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form addInvoiceForm = new frmAddInvoice(this, presenter);

            addInvoiceForm.FormBorderStyle = FormBorderStyle.None;
            //set fill parent
            addInvoiceForm.MdiParent = this.MdiParent;
            addInvoiceForm.Dock      = DockStyle.Fill;
            addInvoiceForm.Show();
        }
Esempio n. 2
0
        private void btnILUpdateInvoice_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            //int row = gvILInvoice.FocusedRowHandle;
            //String invoiceCode =  table.Rows[row]["INVOICE_CODE"] + "";

            GridView   gridView    = grdconILInvoice.FocusedView as GridView;
            GridColumn colCode     = gvILInvoice.Columns["INVOICE_CODE"];
            String     invoiceCode = gvILInvoice.GetRowCellValue(gridView.FocusedRowHandle, colCode).ToString();

            Form addInvoiceForm = new frmAddInvoice(this, presenter, invoiceCode);

            addInvoiceForm.FormBorderStyle = FormBorderStyle.None;
            //set fill parent
            addInvoiceForm.MdiParent = this.MdiParent;
            addInvoiceForm.Dock      = DockStyle.Fill;
            addInvoiceForm.Show();
            // presenter.loadExistedInvoice(invoiceId);
        }