private void metroButton5_Click(object sender, EventArgs e) { NewSingle ns = new NewSingle(); ns.ShowDialog(); if (ns.DialogResult == DialogResult.OK) { //dataGridView3.Rows.Add(ns.TextBox); listSchool.Add(new SchoolData() { Schule = ns.TextBox }); ChangeSchools(); } }
private void metroButton6_Click(object sender, EventArgs e) { NewSingle ns = new NewSingle(); ns.ShowDialog(); if (ns.DialogResult == DialogResult.OK) { //dataGridView4.Rows.Add(ns.TextBox); listDevices.Add(new DevicesData() { Geraet = ns.TextBox }); ChangeDevices(); } }
private void metroButton4_Click(object sender, EventArgs e) { NewSingle ns = new NewSingle(); ns.ShowDialog(); if (ns.DialogResult == DialogResult.OK) { //dataGridView2.Rows.Add(ns.TextBox); listWK.Add(new WKData() { WK = ns.TextBox }); ChangeWKs(); } }