Beispiel #1
0
        private void rbGrade_CheckedChanged(object sender, EventArgs e)
        {
            gradeLevel = (UpgradeScroll.GradeLevel)Enum.Parse(typeof(UpgradeScroll.GradeLevel), ((string)((RadioButton)sender).Tag));

            if (gradeLevel == UpgradeScroll.GradeLevel.BLESSED)
            {
                txtTrinaPercent.Visible = true;
                lblTrinaPercent.Visible = true;
            }
            else
            {
                txtTrinaPercent.Visible = false;
                lblTrinaPercent.Visible = false;
            }
        }
Beispiel #2
0
        private void checkGrade(UpgradeScroll.GradeLevel gl)
        {
            switch (gl)
            {
            case UpgradeScroll.GradeLevel.BLESSED:
                rbBlessed.Checked = true;
                break;

            case UpgradeScroll.GradeLevel.HIGH:
                rbHigh.Checked = true;
                break;

            case UpgradeScroll.GradeLevel.MIDDLE:
                rbMiddle.Checked = true;
                break;

            case UpgradeScroll.GradeLevel.LOW:
                rbLow.Checked = true;
                break;
            }
        }
Beispiel #3
0
        private void rbGrade_CheckedChanged(object sender, EventArgs e)
        {
            gradeLevel = (UpgradeScroll.GradeLevel)Enum.Parse(typeof(UpgradeScroll.GradeLevel), ((string)((RadioButton)sender).Tag));

            if (gradeLevel == UpgradeScroll.GradeLevel.BLESSED)
            {
                txtTrinaPercent.Visible = true;
                lblTrinaPercent.Visible = true;
            }
            else
            {
                txtTrinaPercent.Visible = false;
                lblTrinaPercent.Visible = false;
            }
        }