private void butGradingScale_Click(object sender,EventArgs e) { //Although there can be multiple grading scales on the same evaluation, it is highly discouraged. //The grades must be manually calculated since the only calculated grades are scales that match the evaluation. //This could be changed later by forcing all scales to have point values and giving each EvaluationCriterion a "rubrick" gradingscale. //This change would require that Evaluations be given a different kind of grading scale that allowed for percentage ranges. //This would then be calculated into a grade for the reports that could use a similar grading scale. //These changes may not be necessary if the customers prefers the current method. FormGradingScales FormGS=new FormGradingScales(); FormGS.IsSelectionMode=true; FormGS.ShowDialog(); if(FormGS.DialogResult==DialogResult.OK) { textGradeScaleName.Text=FormGS.SelectedGradingScale.Description; _gradeScale=FormGS.SelectedGradingScale; _evalCritDef.GradingScaleNum=_gradeScale.GradingScaleNum; if(FormGS.SelectedGradingScale.ScaleType==EnumScaleType.Weighted) { textPoints.Visible=true; labelPoints.Visible=true; textPoints.Text=_evalCritDef.MaxPointsPoss.ToString(); } else { textPoints.Visible=false; labelPoints.Visible=false; textPoints.Text=""; } } }
private void butGradingScale_Click(object sender,EventArgs e) { FormGradingScales FormGS=new FormGradingScales(); FormGS.IsSelectionMode=true; FormGS.ShowDialog(); if(FormGS.DialogResult==DialogResult.OK) { textGradeScaleName.Text=FormGS.SelectedGradingScale.Description; _evalDefCur.GradingScaleNum=FormGS.SelectedGradingScale.GradingScaleNum; if(_gradingScales[_evalDefCur.GradingScaleNum].ScaleType==EnumScaleType.Weighted) { labelTotalPoint.Visible=true; textTotalPoints.Visible=true; } else { labelTotalPoint.Visible=false; textTotalPoints.Visible=false; } } }
private void butGradingScales_Click(object sender,EventArgs e) { //GradingScales can be edited and added from here. FormGradingScales FormGS=new FormGradingScales(); FormGS.ShowDialog(); }