Example #1
0
        private void modifyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormQaSetup setup = new FormQaSetup("edit", dgvQa.SelectedRows[0].Cells[2].Value.ToString().Trim());

            if (setup.ShowDialog() == DialogResult.OK)
            {
                LoadQAData();
            }
        }
Example #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FormQaSetup setup = new FormQaSetup("", "");

            if (setup.ShowDialog() == DialogResult.OK)
            {
                LoadQAData();
            }
        }
Example #3
0
        private void dgvQa_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                if (dgvQa.SelectedRows == null)
                {
                    return;
                }

                FormQaSetup setup = new FormQaSetup("edit", dgvQa.SelectedRows[0].Cells[2].Value.ToString().Trim());
                if (setup.ShowDialog() == DialogResult.OK)
                {
                    LoadQAData();
                }
            }
            catch
            {
            }
        }