Beispiel #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            AttachmentChequeReceiptForm form = new AttachmentChequeReceiptForm(-1, _receiptId);

            form.ShowDialog();
            fillGrid();
        }
Beispiel #2
0
 private void btnDisplay_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         DataGridViewRow             dr   = dataGridView1.SelectedRows[0];
         int                         id   = int.Parse(dr.Cells[AttachmentChequeReceiptEntity.FIELD_ID].Value.ToString());
         AttachmentChequeReceiptForm form = new AttachmentChequeReceiptForm(id, _receiptId);
         form.ShowDialog();
         fillGrid();
     }
 }
Beispiel #3
0
        private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            DataGridView gv = (DataGridView)sender;

            if (gv.SelectedRows.Count <= 0)
            {
                return;
            }

            DataGridViewRow dr = gv.SelectedRows[0];
            int             id = -1;

            id = int.Parse(dr.Cells[AttachmentChequeReceiptEntity.FIELD_ID].Value.ToString());
            AttachmentChequeReceiptForm form = new AttachmentChequeReceiptForm(id, _receiptId);

            form.ShowDialog();
            fillGrid();
        }