Beispiel #1
0
 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);
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public void SetDataPointSource(DataPointSource source)
 {
     source.SetDataPoint(this);
     this.source = source;
 }