示例#1
0
        private void btnSaleAdd_Click(object sender, EventArgs e)
        {
            FrmSaleAdd frm = new FrmSaleAdd("");

            //frm.setControl("");
            frm.ShowDialog(this);
            setControl();
        }
示例#2
0
        private void dgvView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            if (dgvView[colId, e.RowIndex].Value == null)
            {
                return;
            }
            FrmSaleAdd frm = new FrmSaleAdd(dgvView[colId, e.RowIndex].Value.ToString());

            //frm.setControl(dgvView[colId, e.RowIndex].Value.ToString());
            frm.ShowDialog(this);
            setControl();
        }