Esempio n. 1
0
        private void AddNewEquationField(AppState state, EquationSet equation)
        {
            var field = new EquationField();

            FieldItemList.Add(new ListViewItem()
            {
                Content = field, ContextMenu = field.ContextMenu
            });
        }
Esempio n. 2
0
        public EquationExpressionBox(EquationField parentField)
        {
            ParentField = parentField ?? throw new ArgumentNullException(nameof(parentField));

            InitializeComponent();

            InputBox.ShowName         = false;
            InputBox.PropertyChanged += (s, e) =>
            {
                ExpressionField.InputBox_PropertyChanged(s, e, ResultBox, StateImage);
            };
        }