public CancelExecutionActionView()
 {
     InitializeComponent();
     buttons.RemoveClick += () => NeedRemove?.Invoke(this);
     buttons.AddNewClick += () => NeedAddNext?.Invoke(this);
     action1View.MakeButtonsInvisible();
 }
 public ReturnScenarioValueView()
 {
     InitializeComponent();
     action2View.Modified += (element) => Modified?.Invoke(this);
     buttons.RemoveClick  += () => NeedRemove?.Invoke(this);
     buttons.AddNewClick  += () => NeedAddNext?.Invoke(this);
     action1View.MakeButtonsInvisible();
 }
        public CheckerOperatorPairView()
        {
            InitializeComponent();

            operatorView.Modified += (e) => Modified?.Invoke(this);
            actionView.Modified   += (e) => Modified?.Invoke(this);

            actionView.NeedAddNext += (e) => NeedAddNext?.Invoke(this);
            actionView.NeedRemove  += (e) => NeedRemove?.Invoke(this);
        }
        public WhileActionView()
        {
            InitializeComponent();
            buttonsEnd.AddNewClick   += () => NeedAddNext?.Invoke(this);
            buttonsWhile.RemoveClick += () => NeedRemove?.Invoke(this);
            buttonsDo.AddNewClick    += () => actionView.AddFirst();
            buttonsWhile.AddNewClick += () => checkerView.AddFirst();

            actionView.Modified  += (e) => Modified?.Invoke(this);
            checkerView.Modified += (e) => Modified?.Invoke(this);
        }
        public ComplexCheckerOperatorPairView()
        {
            InitializeComponent();

            operatorView.Modified       += (e) => Modified?.Invoke(this);
            complexCheckerView.Modified += (e) => Modified?.Invoke(this);

            buttonsEnd.AddNewClick   += () => NeedAddNext?.Invoke(this);
            buttonsGroup.RemoveClick += () => NeedRemove?.Invoke(this);
            buttonsGroup.AddNewClick += () => complexCheckerView.AddFirst();
        }
Пример #6
0
        public IfActionView()
        {
            InitializeComponent();
            buttonsEnd.AddNewClick     += () => NeedAddNext?.Invoke(this);
            buttonsChecker.RemoveClick += () => NeedRemove?.Invoke(this);
            buttonsChecker.AddNewClick += () => checkerView.AddFirst();
            buttonsIf.AddNewClick      += () => actionIfView.AddFirst();
            buttonsElse.AddNewClick    += () => actionElseView.AddFirst();

            actionElseView.Modified += (e) => Modified?.Invoke(this);
            actionIfView.Modified   += (e) => Modified?.Invoke(this);
            checkerView.Modified    += (e) => Modified?.Invoke(this);
        }
 public ExecuteActionView()
 {
     InitializeComponent();
     action1View.Modified += (element) =>
     {
         Modified?.Invoke(this);
         Action2EqualizeToAction1();
         if (!action1View.ActionHolder.Action.ValueType
             .IsCompatibleWith(action2View.ActionHolder.Action.ValueType) ||
             action2View.ActionHolder.Action is EmptyAction)
         {
             _action.InputValue.Action = Lazurite.CoreActions.Utils.Default(action1View.ActionHolder.Action.ValueType);
             Refresh();
         }
     };
     action2View.Modified += (element) => Modified?.Invoke(this);
     buttons.RemoveClick  += () => NeedRemove?.Invoke(this);
     buttons.AddNewClick  += () => NeedAddNext?.Invoke(this);
 }
Пример #8
0
        public CheckerActionView()
        {
            InitializeComponent();

            action1View.Modified += (element) =>
            {
                Modified?.Invoke(this);
                Action2EqualizeToAction1();
                if (action2View.ActionHolder.Action.ValueType.GetType() !=
                    action1View.ActionHolder.Action.ValueType.GetType())
                {
                    _action.ComparisonType             = new EqualityComparisonType();
                    _action.TargetAction2Holder.Action = Lazurite.CoreActions.Utils.Default(action1View.ActionHolder.Action.ValueType);
                    action2View.Refresh();
                    comparisonView.Refresh();
                }
            };
            action2View.Modified    += (element) => Modified?.Invoke(this);
            comparisonView.Modified += (element) => Modified?.Invoke(this);
            buttons.RemoveClick     += () => NeedRemove?.Invoke(this);
            buttons.AddNewClick     += () => NeedAddNext?.Invoke(this);
        }