private void addElementsToolStripMenuItem_Click(object sender, EventArgs e) { ElementCreation addElementForm = new ElementCreation(Element_Type); addElementForm.ShowDialog(); //TODO: Show the etopol. //dataGridView1.DataSource = Nodes.Select(vector => new { X = vector.X, Y = vector.Y, Z = vector.Z }).ToList(); // Consider using tree view so can show elements //dataGridView2.DataSource = NodalCoordinates.Select(vector => new { X = Enumerable.Range(0, NodalCoordinates.GetLength(0)).Select(X => NodalCoordinates[X, 0]).ToArray(), Y = Enumerable.Range(0, NodalCoordinates.GetLength(0)).Select(X => NodalCoordinates[X, 1]).ToArray(), Z = Enumerable.Range(0, NodalCoordinates.GetLength(0)).Select(X => NodalCoordinates[X, 2]).ToArray() }).ToList(); }
private void addElementsToolStripMenuItem_Click(object sender, EventArgs e) { ElementCreation addElementForm = new ElementCreation(); addElementForm.ShowDialog(); }