private static EventHandler Bearbeite(CharacterCreator Start, CharakterCreationControl Creation) { return new EventHandler((sender, e) => { Start.Form.SetControl(Creation); }); }
public CharakterWertControl(string Name, CharacterCreator Start, CharakterCreationControl Creation) { this.Text = Name; this.AutoSize = true; this.Click += Bearbeite(Start, Creation); this.Start = Start; this.Creation = Creation; Creation.Zuruck.Click += (sender, e) => { Start.Form.SetControl(Start); }; Creation.Weiter.Click += (sender, e) => { Creation.Apply(Start.Charakter); Start.Change(); Start.Form.SetControl(Start); }; Feed(); }