/// <summary> /// Default ctor /// </summary> public Scene3DControl() { InitializeComponent(); Scene = new Scene3D(); Drag = new DragBallNavigator(this); ViewerConfig = new GLViewerConfig(); ViewerConfig.LoadDefault(); }
private void pictureBox4_Click(object sender, EventArgs e) { GLViewerConfigForm dlg = new GLViewerConfigForm(); Point p = HomeButton.PointToScreen(new Point(HomeButton.Width, 0)); dlg.Location = p; dlg.Config = this.ViewerConfig; if (dlg.ShowDialog() == DialogResult.OK) { this.ViewerConfig = dlg.Config; this.ViewerConfig.SaveDefault(); Refresh(); } }