public Subject(string aName, string aShortName, Color aColor, RelativeSubjectDifficulty aDifficulty) { Name = aName; ShortName = aShortName; Color = aColor; Difficulty = aDifficulty; ID = IndexMaker.Subject(); }
void SetControlsChecked(int rowIndex, RelativeSubjectDifficulty diff) { if ((diff & RelativeSubjectDifficulty.Low) == RelativeSubjectDifficulty.Low) { (ControlGroups[rowIndex][0] as RadCheckBox).Checked = true; } if ((diff & RelativeSubjectDifficulty.Normal) == RelativeSubjectDifficulty.Normal) { (ControlGroups[rowIndex][1] as RadCheckBox).Checked = true; } if ((diff & RelativeSubjectDifficulty.High) == RelativeSubjectDifficulty.High) { (ControlGroups[rowIndex][2]as RadCheckBox).Checked = true; } }