예제 #1
0
        public DecisionEditorForm(SMContainerPanel containerPanel, SMDecision decisionItem)
        {
            _containerPanel = containerPanel;
            _decisionItem   = decisionItem;
            InitializeComponent();
            tbText.Text        = _decisionItem.Text;
            Text               = decisionItem.Name;
            tbWaitTimeOut.Text = decisionItem.WaitTimeoutMS.ToString();

            foreach (SMPathOut path in _decisionItem.PathArray)
            {
                SMPathOutBool pathOutBool = path as SMPathOutBool;
                if (pathOutBool != null)
                {
                    if (pathOutBool.True)
                    {
                        tbTrueDelay.Text = pathOutBool.PathOutDelayMS.ToString();
                    }
                    else
                    {
                        tbFalseDelay.Text = pathOutBool.PathOutDelayMS.ToString();
                    }
                }
            }

            cbNested.Checked            = _decisionItem.HasChildren;
            cbFlowTimeouttoStop.Checked = _decisionItem.FlowTimeoutToStopPath;
            DummyID           = _decisionItem.ConditionID;
            booleanID.ScopeID = _decisionItem.ParentContainer.ScopeID;


            try
            {
                booleanID.BindTwoWay(() => DummyID);
            }
            catch
            {
                DummyID = "";
                booleanID.BindTwoWay(() => DummyID);
            }


            cbUseDryRunLogic.Checked     = _decisionItem.UseDryRunLogic;
            bcbDryRunLogic.SelectedIndex = _decisionItem.DryRunLogic ? 1 : 0;
        }
예제 #2
0
 public void AddToDecisionList(SMDecision decisionItem, SMFlowBase flowItemForPathOut, SMPathOut pathOut)
 {
     _decisionLoopList.Add(decisionItem);
     _pathLoopDict.Add(pathOut, flowItemForPathOut);
 }