private void AddBtn_Click(object sender, EventArgs e)
        {
            OptionDiseaseLevelForm optionDiseaseLevelForm = new OptionDiseaseLevelForm("New Disease Level");

            if (optionDiseaseLevelForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.fDisease.Levels.Add(optionDiseaseLevelForm.DiseaseLevel);
                this.update_list();
            }
        }
        private void AddBtn_Click(object sender, EventArgs e)
        {
            string level = "New Disease Level";

            OptionDiseaseLevelForm dlg = new OptionDiseaseLevelForm(level);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                fDisease.Levels.Add(dlg.DiseaseLevel);
                update_list();
            }
        }
 private void EditBtn_Click(object sender, EventArgs e)
 {
     if (this.SelectedLevel != null)
     {
         int diseaseLevel = this.fDisease.Levels.IndexOf(this.SelectedLevel);
         OptionDiseaseLevelForm optionDiseaseLevelForm = new OptionDiseaseLevelForm(this.SelectedLevel);
         if (optionDiseaseLevelForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             this.fDisease.Levels[diseaseLevel] = optionDiseaseLevelForm.DiseaseLevel;
             this.update_list();
         }
     }
 }
        private void EditBtn_Click(object sender, EventArgs e)
        {
            if (SelectedLevel != null)
            {
                int index = fDisease.Levels.IndexOf(SelectedLevel);

                OptionDiseaseLevelForm dlg = new OptionDiseaseLevelForm(SelectedLevel);
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    fDisease.Levels[index] = dlg.DiseaseLevel;
                    update_list();
                }
            }
        }