private void selectGradeLevelComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            GradeManager aGradeManager = new GradeManager();
            Grade aGrade = new Grade();
            aGrade.BasicAmount = aGradeManager.Get((int)selectGradeLevelComboBox.SelectedValue).BasicAmount;
            aGrade.MedicalAllowance = aGradeManager.Get((int)selectGradeLevelComboBox.SelectedValue).MedicalAllowance;
            aGrade.HouseRent = aGradeManager.Get((int)selectGradeLevelComboBox.SelectedValue).HouseRent;
            totalSalaryTextBox.Text = aGrade.GetTotalSalary().ToString();

            gradeId = (int) selectGradeLevelComboBox.SelectedValue;
        }
        private void saveButton_Click(object sender, EventArgs e)
        {
            Grade aGrade = new Grade();
            aGrade.GradeLevel = gradeLevelTextBox.Text;
            aGrade.BasicAmount = Convert.ToDouble(basicAmountTextBox.Text);
            aGrade.MedicalAllowance = Convert.ToDouble(medicalAllowanceTextBox.Text);
            aGrade.HouseRent = Convert.ToDouble(houseRentTextBox.Text);

            GradeManager aGradeManager = new GradeManager();
            string msg = aGradeManager.Save(aGrade);
            MessageBox.Show(msg);
        }