public MainForm() { InitializeComponent(); Application.init(this.ViewBox.Handle.ToInt32(), this.ViewBox.Size.Height, this.ViewBox.Size.Width); Scene = Core.Scene.Create(); Ground = Core.Ground.Create(); SunLight = Core.SunLight.Create(); Camera = Core.Camera.Create(); Camera.SetPosition(0, 5, -8); Camera.SetFrontVector(0.3f, -0.2f, 0.7f); Application.ChangeScene(Scene); Scene.AddChild(Ground); Scene.AddChild(SunLight); Scene.AddChild(Camera); Run(); PropertyForm.SelectedObject = PropertyTable; ObjectListBox.Items.Clear(); ObjectListBox.Items.AddRange(Scene.GetChildNameList().ToArray()); }