Example #1
0
        public override void AddObservedData(DataRepository observedData, bool asResultOfDragAndDrop)
        {
            AddDataRepositoryToEditor(observedData);

            //make curve visibles
            if (!asResultOfDragAndDrop)
            {
                return;
            }

            observedData.Where(c => c.DataInfo.Origin == ColumnOrigins.Observation)
            .Each(c => ChartEditorPresenter.AddCurveForColumn(c.Id));
        }
Example #2
0
        protected virtual void AddObservedData(IReadOnlyList <DataRepository> observedData, bool asResultOfDragAndDrop)
        {
            AddDataRepositoriesToEditor(observedData);

            //make curve visible
            if (!asResultOfDragAndDrop)
            {
                return;
            }

            using (_chartUpdater.UpdateTransaction(Chart))
            {
                var columnsToAdd = observedData.SelectMany(x => x.ObservationColumns());
                columnsToAdd.Each(c => ChartEditorPresenter.AddCurveForColumn(c));
            }
        }