private void butAdd_Click(object sender, System.EventArgs e) { QuestionDef def = new QuestionDef(); def.ItemOrder = QuestionList.Length; FormQuestionDefEdit FormQ = new FormQuestionDefEdit(def); FormQ.IsNew = true; FormQ.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormQuestionDefEdit FormQ = new FormQuestionDefEdit(QuestionList[e.Row]); FormQ.ShowDialog(); if (FormQ.DialogResult != DialogResult.OK) { return; } FillGrid(); }
private void butAdd_Click(object sender, System.EventArgs e) { QuestionDef def=new QuestionDef(); def.ItemOrder=QuestionList.Length; FormQuestionDefEdit FormQ=new FormQuestionDefEdit(def); FormQ.IsNew=true; FormQ.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormQuestionDefEdit FormQ=new FormQuestionDefEdit(QuestionList[e.Row]); FormQ.ShowDialog(); if(FormQ.DialogResult!=DialogResult.OK) return; FillGrid(); }