예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Equipment viewEquip = new Equipment();

            ((Label)viewEquip.Controls["lblID"]).Text = lblRoomName.Text;
            viewEquip.ShowDialog();
        }
예제 #2
0
        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();
            }
        }
예제 #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            Equipment viewEquip = new Equipment();

            viewEquip.ShowDialog();
        }