public int CompareTo(object obj) { if (!(obj is HeatStreamData)) { return(-1); } HeatStreamData other = obj as HeatStreamData; return(this.Label.CompareTo(other.Label)); }
public IStreamDataRow AddNewRow() { IStreamDataRow newRow; if (StreamType.Heat == m_type) { newRow = new HeatStreamData(); } else { newRow = new ChemicalStreamData(); } // Add the new row to the list (will invoke PropertyChanged for us) AddRow(newRow); // Return the new row return(newRow); }