private void lvwMenu_Click(object sender, EventArgs e) { if (lvwMenu.SelectedItems[0].Name == "LiftAdd") { frmLiftAdd frm = new frmLiftAdd(); frm.ShowDialog(); } else if (lvwMenu.SelectedItems[0].Name == "LiftAll") { LoadData(MyType.Lift); } }