///<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);
        }
 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;
 }