xFunc.Presenters.GraphsPresenter.Add C# (CSharp) Method

Add() public method

public Add ( string strExp ) : void
strExp string
return void
        public void Add(string strExp)
        {
            var exp = processor.Parse(strExp);

            listOfGraphs.Add(new GraphItemViewModel(exp, true, null, Settings.Default.DefaultChartColor));

            while (listOfGraphs.Count > countOfGraphs)
                listOfGraphs.RemoveAt(0);

            view.Graphs = listOfGraphs.AsReadOnly();
        }