private void button2_Click(object sender, EventArgs e) { Equipment viewEquip = new Equipment(); ((Label)viewEquip.Controls["lblID"]).Text = lblRoomName.Text; viewEquip.ShowDialog(); }
private void pictureBox2_Click(object sender, EventArgs e) { DialogResult equipmentDialog = MessageBox.Show("View current equipment in storage?", "Equipment Storage", MessageBoxButtons.YesNo); if (equipmentDialog == DialogResult.Yes) { Equipment viewEquip = new Equipment(); viewEquip.ShowDialog(); } }
private void button2_Click(object sender, EventArgs e) { Equipment viewEquip = new Equipment(); viewEquip.ShowDialog(); }