コード例 #1
0
        public void SetStep(StepEditContext stepEditContext)
        {
            this.m_StepEditContext = stepEditContext;
            cbVariable.DataSource  = m_StepEditContext.StateVariables.Primitives();

            //Step
            tpStep.Text       = m_StepEditContext.Step.DisplayName;
            m_StepEditor      = StepEditorFactory.GetStepEditor(m_StepEditContext);
            m_StepEditor.Dock = DockStyle.Fill;
            tpStep.Controls.Add(m_StepEditor);

            //Condition
            if (m_StepEditContext.Step.Condition != null)
            {
                m_ConditionalRoot = m_StepEditContext.Step.Condition;
                //m_CurrentExpression =

                zUpdateExpressionBuilder();
                btnRemoveCondition.Enabled     = true;
                panelExpressionBuilder.Enabled = true;
            }

            //Behavior
            cbStepFailureScope.SelectedItem = m_StepEditContext.Step.FailureScope;

            zRefreshCondition();
        }
コード例 #2
0
 public void RegisterEditor(StepEditor editor, TabPage page)
 {
     editors.Add(page, editor);
     editor.Controller = this;
 }