Beispiel #1
0
        private void buttonViDetails_Click(object sender, EventArgs e)
        {
            DataTable rotatedTable = new DataTable();

            rotatedTable.Columns.Add("Pole");
            rotatedTable.Columns.Add("Wartość");

            if (visInspInfo.Rows.Count > 0)
            {
                for (int c = 0; c < visInspInfo.Columns.Count; c++)
                {
                    rotatedTable.Rows.Add(visInspInfo.Columns[c].ColumnName, visInspInfo.Rows[0][c].ToString());
                }
            }
            testDetails testForm = new testDetails(rotatedTable);

            testForm.ShowDialog();
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            testDetails testForm = new testDetails(testData);

            testForm.ShowDialog();
        }