Beispiel #1
0
        public void AddElement(ConditionElement tpElement)
        {
            int nMax = CtpConditions.Length;

            Array.Resize(ref CtpConditions, nMax + 1);
            CtpConditions[nMax] = tpElement;
        }
        //条件要素の内容をコンボボックスなどに反映する
        private void DisplayElement(ConditionElement tpElement)
        {
            //オプションボタンの選択(Typeの方がいい?)
            if (tpElement.GetCondition() == NUMBER_CAPTION) //番号
            {
                optNumber.Checked = true;
            }
            else
            {
                optIterator.Checked = true;
            }

            combCondition.SelectedItem = tpElement.GetCondition();
            combItem.SelectedItem      = tpElement.GetTarget();
            combOperator.SelectedItem  = tpElement.GetOperator();
        }
Beispiel #3
0
 public void SetElement(int nIndex, ConditionElement tpElement)
 {
     CtpConditions[nIndex] = tpElement;
 }