public limbCheckboxWrapper(Frame_SelectTreatment_Gnome gnome, Button btn, Limb limb) { Gnome = gnome; Button = btn; Limb = limb; initial_text = btn.Text; Update(); btn.Click += new EventHandler((sender, args) => { Gnome.OnTreatmentPlanChanged(Gnome.treatRecord.Get_ToggleLimb(Limb)); Update(); Gnome.updateLimbCheckbox(); }); }
public effectCheckboxWrapper(Frame_SelectTreatment_Gnome frame_SelectTreatment_Gnome, System.Windows.Forms.Button btn, HealthStatusAilment effect) { this.Gnome = frame_SelectTreatment_Gnome; this.Button = btn; this.Effect = effect; Update(); btn.Width = 130; btn.Click += new EventHandler((sender, args) => { Gnome.OnTreatmentPlanChanged(Gnome.treatRecord.Get_ToggleEffect(effect)); Update(); Gnome.updateEffectCheckbox(); }); }