예제 #1
0
 private static EventHandler Bearbeite(CharacterCreator Start, CharakterCreationControl Creation)
 {
     return new EventHandler((sender, e) =>
     {
         Start.Form.SetControl(Creation);
     });
 }
예제 #2
0
        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();
        }