Example #1
0
        public static void Edit(int servicoId)
        {
            var frm = new FrmServicoEdit();

            frm.SetServico(servicoId);
            frm.ShowDialog();
        }
Example #2
0
 private void Edit()
 {
     if (dgvListaServicos.CurrentRow != null)
     {
         var item = dgvListaServicos.CurrentRow.DataBoundItem as Domain.Servico;
         FrmServicoEdit.Edit(item.Id);
         Fill();
     }
 }
Example #3
0
        public static void Create()
        {
            var frm = new FrmServicoEdit();

            frm.ShowDialog();
        }
Example #4
0
 private void btnCreate_Click(object sender, EventArgs e)
 {
     FrmServicoEdit.Create();
     Fill();
 }