protected void RefreshGrid(bool rebind)
 {
     if (patient == null && visit == null)
     {
         RadGrid1.DataSource = CntAriCli.GetExaminationsAssigned(ctx);
     }
     else
     {
         if (patient != null)
         {
             RadGrid1.DataSource = patient.ExaminationAssigneds;
         }
         if (visit != null)
         {
             RadGrid1.DataSource = visit.ExaminationAssigneds;
         }
     }
     if (rebind)
     {
         RadGrid1.Rebind();
     }
 }