// Inserts an empty multiline calcview at the position public void InsertCalcMultilineView(int pos) { MovableCasCalcMulitlineView movCasCalcMultiView = new MovableCasCalcMulitlineView("", Eval); movCasCalcMultiView.calcview.evaluateButton.Clicked += delegate { movCasCalcMultiView.calcview.Evaluate(); Reevaluate(); movCasCalcMultiView.ShowAll(); }; movCasCalcMultiView.Attach(AddLockCheckButton(movCasCalcMultiView), 1, 100, 1, 1); movCasCalcMultiView.Attach(AddCommandButtons(movCasCalcMultiView), 100, 1, 1, 1); if (pos == -1) { castextviews.Add(movCasCalcMultiView); } else { castextviews.Insert(pos, movCasCalcMultiView); } Clear(); Redraw(); ShowAll(); }
// Inserts a multiline calcview public void InsertCalcMultilineView(string serializedString, bool locked) { MovableCasCalcMulitlineView movCasCalcMultiView = new MovableCasCalcMulitlineView(serializedString, Eval); movCasCalcMultiView.calcview.evaluateButton.Clicked += delegate { movCasCalcMultiView.calcview.Evaluate(); movCasCalcMultiView.ShowAll(); }; movCasCalcMultiView.Attach(AddCommandButtons(movCasCalcMultiView), 100, 1, 1, 1); movCasCalcMultiView.Attach(AddLockCheckButton(movCasCalcMultiView), 1, 100, 1, 1); castextviews.Add(movCasCalcMultiView); Clear(); Redraw(); ShowAll(); }