Exemple #1
0
        private void FillGridPat()
        {
            gridPat.BeginUpdate();
            gridPat.Columns.Clear();
            ODGridColumn col;

            col = new ODGridColumn("Field", 150);
            gridPat.Columns.Add(col);
            col = new ODGridColumn("Value", 200);
            gridPat.Columns.Add(col);
            gridPat.Rows.Clear();
            _arrayPatientFields = PatFields.Refresh(_patCur.PatNum);
            PatFieldDefs.RefreshCache();
            PatFieldL.AddPatFieldsToGrid(gridPat, _arrayPatientFields.ToList(), FieldLocations.OrthoChart);
            gridPat.EndUpdate();
        }
Exemple #2
0
 private void gridPat_CellDoubleClick(object sender, ODGridClickEventArgs e)
 {
     if (gridPat.Rows[e.Row].Tag is PatFieldDef)             //patfield for an existing PatFieldDef
     {
         PatFieldDef patFieldDef = (PatFieldDef)gridPat.Rows[e.Row].Tag;
         PatField    field       = PatFields.GetByName(patFieldDef.FieldName, _arrayPatientFields);
         PatFieldL.OpenPatField(field, patFieldDef, _patCur.PatNum, true);
     }
     else if (gridPat.Rows[e.Row].Tag is PatField)             //PatField for a PatFieldDef that no longer exists
     {
         PatField         field  = (PatField)gridPat.Rows[e.Row].Tag;
         FormPatFieldEdit FormPF = new FormPatFieldEdit(field);
         FormPF.IsLaunchedFromOrtho = true;
         FormPF.ShowDialog();
     }
     FillGridPat();
 }