public static void Fill(Grid a, double[] data, int index) { object[] temp = new object[data.Length]; data.CopyTo(temp, 0); MakeGrid.Fill2(a, temp, Color.Snow, index); }
public static void Fill(Grid a, double[,] data) { object[,] temp = new object[data.GetLongLength(0), data.GetLongLength(1)]; for (int i = 0; i < data.GetLongLength(0); i++) { for (int j = 0; j < data.GetLongLength(1); j++) { temp[i, j] = data[i, j]; } } MakeGrid.Fill2(a, temp, Color.Snow); }
public static void Fill(Grid a, double[] data, HeaderColumnsHeader header = HeaderColumnsHeader.both) { object[] temp = new object[data.Length]; data.CopyTo(temp, 0); switch (header) { case HeaderColumnsHeader.both: case HeaderColumnsHeader.rows: MakeGrid.Fill2(a, temp, Color.Snow, 1); break; case HeaderColumnsHeader.none: case HeaderColumnsHeader.columns: MakeGrid.Fill2(a, temp, Color.Snow, 0); break; } }