Пример #1
0
        private void btnThooAdd_Click(object sender, EventArgs e)
        {
            FrmThooAdd frm = new FrmThooAdd();

            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;
            }
            FrmThooAdd frm = new FrmThooAdd();

            frm.setControl(dgvView[colId, e.RowIndex].Value.ToString());
            frm.ShowDialog(this);
            try
            {
                dgvView.Rows[e.RowIndex].DefaultCellStyle.BackColor = ColorTranslator.FromHtml(frm.color);
            }
            catch (Exception ex)
            {
            }

            setControl();
        }