コード例 #1
0
        ///<summary>Used by MoveUp and MoveDown.</summary>
        private static void SetOrder(int mySelNum, int myItemOrder, QuestionDef[] List)
        {
            QuestionDef temp = List[mySelNum];

            temp.ItemOrder = myItemOrder;
            QuestionDefs.Update(temp);
        }
コード例 #2
0
 private void butOK_Click(object sender, System.EventArgs e)
 {
     QuestionDefCur.QuestType   = (QuestionType)listType.SelectedIndex;
     QuestionDefCur.Description = textQuestion.Text;
     if (IsNew)
     {
         QuestionDefs.Insert(QuestionDefCur);
     }
     else
     {
         QuestionDefs.Update(QuestionDefCur);
     }
     DialogResult = DialogResult.OK;
 }