private void MenuClick(object sender, EventArgs e) { switch (((ToolStripItem)sender).Name) { case "config": FrmRecadosPrincipal config = new FrmRecadosPrincipal(); config.ShowDialog(); break; default: break; } }
private void ButtonClick(object sender, EventArgs e) { FrmRecadosPrincipal config = new FrmRecadosPrincipal(); config.ShowDialog(); }