private MedicalViewerCellImageFeatures GetCellFeatures() { MedicalViewerCellImageFeatures features = (MedicalViewerCellImageFeatures)0; if (_chkAnnotation.Checked) { features |= MedicalViewerCellImageFeatures.Annotations; } if (_chkRegion.Checked) { features |= MedicalViewerCellImageFeatures.Regions; } if (_chkRulers.Checked) { features |= MedicalViewerCellImageFeatures.Rulers; } if (_chkBorders.Checked) { features |= MedicalViewerCellImageFeatures.Borders; } if (_chkTags.Checked) { features |= MedicalViewerCellImageFeatures.Tags; } return(features); }
private void _chkTags_CheckedChanged(object sender, EventArgs e) { features = GetCellFeatures(); UpdateCellImage((MainForm)this.Owner); }
private void _chkAll_CheckedChanged(object sender, EventArgs e) { EnableOptionsCheckBoxs(!_chkAll.Checked); features = _chkAll.Checked ? MedicalViewerCellImageFeatures.All : GetCellFeatures(); UpdateCellImage((MainForm)this.Owner); }