void lb_DoubleClick(object sender, EventArgs e) { var index = plSteps.Controls.GetChildIndex((Label)sender); IModule module = (IModule)lbSteps.Items[index]; module.EditModule(); }