private void DetalheslayoutButton_Click(object sender, EventArgs e) { try { if (consultalayoutGridView.SelectedRows.Count == 0) { throw new Exception("Selecione um layout."); } cadastrarlayoutForm objForm = new cadastrarlayoutForm(consultalayoutGridView.SelectedRows[0].Cells, ref nomelayoutComboBox, ref consultalayoutGridView); objForm.Show(); } catch (Exception ex) { MensagemErro(ex); } }
private void layoutToolStripMenuItem_Click(object sender, EventArgs e) { cadastrarlayoutForm objForm = new cadastrarlayoutForm(); objForm.Show(); }