public ViewportController() { view = new Viewport(this); InitializeContextMenu(); }
public void SetViewport(Viewport viewport) { pnlViewport.Controls.Add(viewport); viewport.Dock = DockStyle.Fill; }