Exemplo n.º 1
0
        private void EditOneInvoiceForm(bool isEdit)
        {
            frmAddInvoice frm = new frmAddInvoice();

            frm.Mode = isEdit ? 2 : 4;
            frm.Inv  = ctrlInvoices1.GetActiveInvoice();
            if (System.Windows.Forms.DialogResult.Yes == frm.ShowDialog(this))
            {
                RefreshPanels();
            }
        }
Exemplo n.º 2
0
        private void DeleteOneInvoiceForm()
        {
            frmAddInvoice frm = new frmAddInvoice();

            frm.Mode = 3;
            frm.Inv  = ctrlInvoices1.GetActiveInvoice();
            if (System.Windows.Forms.DialogResult.Yes == frm.ShowDialog(this))
            {
                RefreshPanels();
            }
        }
Exemplo n.º 3
0
        private void gvPair_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0 || e.ColumnIndex != gvPair.Columns["PDF"].Index)
            {
                return;
            }
            int Id = (int)gvPair[e.ColumnIndex, e.RowIndex].Value;

            frmAddInvoice frm = new frmAddInvoice();

            frm.Mode = 4;
            frm.Inv  = DB.GetInvoice(Id);
            frm.ShowDialog(this);
        }
Exemplo n.º 4
0
        private void menuHorniAdd_Click(object sender, EventArgs e)
        {
            frmAddInvoice FrmAdd = new frmAddInvoice();

            FrmAdd.ShowDialog();
        }