private void AddNewEquationField(AppState state, EquationSet equation) { var field = new EquationField(); FieldItemList.Add(new ListViewItem() { Content = field, ContextMenu = field.ContextMenu }); }
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); }; }