示例#1
0
        private void B_Add_Click(object sender, EventArgs e)
        {
            var newQuestion = new F_AddEditQuestion()
            {
                IsAdd = true
            };

            if (newQuestion.ShowDialog() == DialogResult.OK)
            {
                BindGrid();
            }
        }
示例#2
0
        private void DGV_Main_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            var questionId = new Guid(DGV_Main.Rows[e.RowIndex].Cells[0].Value.ToString());

            var editQuestion = new F_AddEditQuestion()
            {
                IsAdd = false, QuestionId = questionId
            };

            if (editQuestion.ShowDialog() == DialogResult.OK)
            {
                BindGrid();
            }
        }