Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormQuestionDefEdit FormQ = new FormQuestionDefEdit(QuestionList[e.Row]);

            FormQ.ShowDialog();
            if (FormQ.DialogResult != DialogResult.OK)
            {
                return;
            }
            FillGrid();
        }
Exemplo n.º 3
0
		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();
		}
Exemplo n.º 4
0
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormQuestionDefEdit FormQ=new FormQuestionDefEdit(QuestionList[e.Row]);
			FormQ.ShowDialog();
			if(FormQ.DialogResult!=DialogResult.OK)
				return;
			FillGrid();
		}