/// <summary> /// Elkéri a cella sztring értékét. /// </summary> /// <param name="p_Cell">A cella neve, pl. A0, B8, BA25 stb.</param> /// <returns>A cella sztring értéke.</returns> public string GetStringCell(string p_Cell) { CvsCell cell = this.InSightConnection.Results.Cells[p_Cell]; if (cell != null) { return(cell.ToString()); } return(null); }
/// <summary> /// Elkéri a cella bool értékét. Számok esetében 0 <code>false</code> és minden más <code>true</code>, /// sztring esetén az üres sztring <code>false</code> minden és más <code>true</code>, egyéb cella mindig <code>false</code>. /// </summary> /// <param name="p_Cell">A cella neve, pl. A0, B8, BA25 stb.</param> /// <returns>A cella bool értéke.</returns> public bool GetBoolCell(string p_Cell) { CvsCell cell = this.InSightConnection.Results.Cells[p_Cell]; if (cell != null) { switch (cell.DataType) { case CvsCellDataType.Integer: return((cell as CvsCellInt).Value != 0); case CvsCellDataType.FloatingPoint: return((cell as CvsCellFloat).Value != 0); case CvsCellDataType.String: return(cell.ToString().Length < 1); default: return(false); } } return(false); }