private void frmMain_Load(object sender, EventArgs e) { Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); this.Text = string.Format("{0} {1}", Helpers.PROGRAM_NAME, Helpers.PROGRAM_VERSION); Helpers.CreateDataPaths(Application.StartupPath); Settings = Helpers.LoadSettings(); LoadObjectInObjectsTreeView(Path.Combine(Application.StartupPath, Settings.FolderBase)); InitialiseSceneTreeView(); core = new Core(pnlRenderer.Handle, Settings); selectedTool = Tool.None; mousePosition3D = core.Globals.Vector3(0, 0, 0); initialPosition = core.Globals.Vector3(0, 0, 0); sceneFileName = string.Empty; defaultProductName = Text; btnSnap.Checked = Settings.SnapToGrid; allMeshes = new List<Engine.Mesh>(); Show(); Focus(); doLoop = true; MainLoop(); }