private void btnChange_Click(object sender, EventArgs e) { FrmServicos serv = new FrmServicos(2); serv.setCliente(GridServicos.CurrentRow.Cells[1].Value.ToString()); serv.setProfissional(GridServicos.CurrentRow.Cells[2].Value.ToString()); serv.setServico(GridServicos.CurrentRow.Cells[3].Value.ToString()); serv.setDia(GridServicos.CurrentRow.Cells[4].Value.ToString()); serv.setHora(GridServicos.CurrentRow.Cells[5].Value.ToString()); serv.setPreco(GridServicos.CurrentRow.Cells[6].Value.ToString()); int id = (int)GridServicos.CurrentRow.Cells[0].Value; serv.setId(id); serv.Show(); this.Visible = false; }
private void novoServiçoToolStripMenuItem_Click(object sender, EventArgs e) { Servicos.FrmServicos formServicos = new Servicos.FrmServicos(1); formServicos.Show(); }