예제 #1
0
 string IStringConvertibleMatrix.GetValue(int rowIndex, int columnIndex)
 {
     if (columnIndex < rows.Count)
     {
         string columnName = ((IStringConvertibleMatrix)this).ColumnNames.ElementAt(columnIndex);
         if (rows.ContainsKey(columnName) && rowIndex < rows[columnName].Points.Count)
         {
             return(string.Format("{0};{1}", rows[columnName].Points[rowIndex].X, rows[columnName].Points[rowIndex].Y));
         }
     }
     return(string.Empty);
 }
예제 #2
0
 string IStringConvertibleMatrix.GetValue(int rowIndex, int columnIndex)
 {
     if (columnIndex < rows.Count)
     {
         string columnName = ((IStringConvertibleMatrix)this).ColumnNames.ElementAt(columnIndex);
         if (rows.ContainsKey(columnName) && rowIndex < rows[columnName].Values.Count)
         {
             return(rows[columnName].Values[rowIndex].ToString());
         }
     }
     return(string.Empty);
 }
예제 #3
0
 string IStringConvertibleMatrix.GetValue(int rowIndex, int columnIndex)
 {
     if (columnIndex < rows.Count * 2)
     {
         string columnName = ((IStringConvertibleMatrix)this).ColumnNames.ElementAt(columnIndex);
         if (!rows.ContainsKey(columnName) && columnName.Length > " Index".Length)
         {
             columnName = columnName.Substring(0, columnName.Length - " Index".Length);
             if (rows.ContainsKey(columnName) && rowIndex < rows[columnName].Values.Count)
             {
                 return(rows[columnName].Values[rowIndex].Item1.ToString());
             }
             else
             {
                 return(string.Empty);
             }
         }
         else if (rows.ContainsKey(columnName) && rowIndex < rows[columnName].Values.Count)
         {
             return(rows[columnName].Values[rowIndex].Item2.ToString());
         }
     }
     return(string.Empty);
 }