private void InitializeComponent() { this.SuspendLayout(); this.Name = "MainRenderForm"; this.viewportControl = new GameViewportControl(); viewportControl.Visible = true; this.Controls.Add(viewportControl); this.Load += new EventHandler(MainRenderForm_Load); this.Closing += new CancelEventHandler(MainRenderForm_Closing); this.ResumeLayout(false); }
private void InitializeComponent() { this.SuspendLayout(); MinimumSize = new Size(200, 200); Icon = GetDefaultIcon(); Text = GetDefaultTitle(); Screen = ScreenFromHandle(Handle); this.KeyPreview = true; this.ResizeRedraw = true; this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true); this.viewportControl = new GameViewportControl(); viewportControl.Visible = true; this.Controls.Add(viewportControl); this.ResumeLayout(false); }
public void RemoveRenderControl(GameViewportControl control) { renderControls.Remove(control); }
public void AddRenderControl(GameViewportControl control) { renderControls.Add(control); }