internal DataPoint(DataSet dataSet, string name, DataPointSource source) { Log.LogMessage(Log.LogLevels.DETAILED, "DataPoint constructor: " + name); this.name = name; this.dataSet = dataSet; this.SetDataPointSource(source); }
public DataPoint AddDataPoint(string name, DataPointSource source) { Log.LogMessage(Log.LogLevels.BASIC, "Adding DataPoint: " + name + " to DataSet: " + this.name); if (name == null || name == "") { throw new ArgumentException("DataPoint name cannot be null or empty"); } DataPoint newDataPoint = new DataPoint(this, name, source); dataPoints.Add(name, newDataPoint); return(newDataPoint); }
public void SetDataPointSource(DataPointSource source) { source.SetDataPoint(this); this.source = source; }