示例#1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            ChequeReplyForm form = new ChequeReplyForm(-1, txtCompany.Text);

            form.ChequeId = _id;
            form.initForm();
            form.ShowDialog();
            checkColorOFCheque();
            fillGrid();
        }
示例#2
0
        private void dataGridView1_DoubleClick(object sender, EventArgs e)
        {
            DataGridView gv = (DataGridView)sender;

            if (gv.SelectedCells.Count > 0)
            {
                DataGridViewColumn col = gv.Columns[gv.SelectedCells[0].ColumnIndex];

                if (col.DataGridView.SelectedCells.Count > 0 && gv.SelectedCells[0].Selected)
                {
                    DataGridViewRow dr = gv.SelectedCells[0].OwningRow;
                    int             id = -1;
                    id = int.Parse(dr.Cells[ChequeReplyEntity.FIELD_ID].Value.ToString());
                    ChequeReplyForm form = new ChequeReplyForm(id, txtCompany.Text);
                    form.ChequeId = _id;
                    form.initForm();
                    form.ShowDialog();
                    fillGrid();
                }
            }
        }