/// <summary> /// Standard-Konstruktor /// </summary> public foMain() { InitializeComponent(); this.Data = new TSharedData(); this.Display = new TDisplayFoMain(this, this.Data); this.a = new TArena(this.Display, this.Data); this.Segment = new TVisualSegment(this.paTetris); this.Segment.registerArena(this.a); this.myArena = new TVisualArena(a, this.paTetris, this.Data, this.Segment); TSegmentBase.registerForm(this); }
/// <summary> /// Standard-Konstruktor /// </summary> /// <param name="a"></param> /// <param name="p"></param> public TVisualArena(TArena a, Panel p, TSharedData data, TVisualSegment segment) { this.myArena = a; this.myPanel = p; this._MeinSegment = segment; this.SpielfeldFarben = new Color[TArena.AnzahlSektoren, TArena.AnzahlSchichten]; this.myPanel.Paint += myPanel_Paint; initLabelPause(); this.myArena.registerArena(this); this._SharedData = data; }