public BattleForm() { InitializeComponent(); this.bitmapButtonClose.ImageNormal = PicLoader.Read("Button.Panel", "closebutton1.jpg"); bitmapButtonClose.NoUseDrawNine = true; myCursor = new HSCursor(this); battleManager = new BattleManager(); tileManager = new TileManager(); chessMoveAnim = new ChessMoveAnim(); battleMenu = new BattleMenu(); battleMenu.OnClick += BattleMenu_OnClick; textFlow = new TextFlowController(); effectRun = new EffectRunController(); refreshAll = ActionTimely.Register(doubleBuffedPanel1.Invalidate, 0.05); timerManager = new NLTimerManager(); coroutineManager = new NLCoroutineManager(timerManager); aiRobot = new AiRobot(battleManager, DoMove, DoAttack, DoStop); }
public BasePanel() { this.panel1 = new System.Windows.Forms.Panel(); this.SuspendLayout(); // // panel1 // this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(200, 100); this.panel1.TabIndex = 0; this.panel1.Visible = false; // // BasePanel // this.Controls.Add(this.panel1); this.Name = "BasePanel"; this.ResumeLayout(false); effectRunBase = new EffectRunController(); textFlow = new TextFlowController(); }