Exemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddEditStatus frm = new frmAddEditStatus(null, MethodType.Add);

            frm.ShowDialog();
            entityServerModeSource1.QueryableSource = new UnitOfWork().StatusesRepo.Fetch();
        }
Exemplo n.º 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (StatusGrid.GetFocusedRow() is Statuses item)
     {
         frmAddEditStatus frm = new frmAddEditStatus(item, MethodType.Edit);
         frm.ShowDialog();
         entityServerModeSource1.QueryableSource = new UnitOfWork().StatusesRepo.Fetch();
     }
 }