Some pits encountered in the secondary development of CityMaker 8

1. You need to copy all the files in the bin directory (usually with runtime) to the debug directory, otherwise "Failed to load the process imported by XX" will appear:

2. When VS is designed, controls cannot be placed by dragging and dropping.

suggestion:
1) First use a button, after dragging, replace the button, and replace the following code after the design is completed.

2) In the design.cs code corresponding to the form, add the code directly, as follows:
 
 
        private Gvitech.CityMaker.Controls.AxRenderControl axRenderControl;

            this.scenePanel.Controls.Add(this.dockPanel6_Container);
            this.scenePanel.DockedAsTabbedDocument = true;
            this.scenePanel.ID = new System.Guid("23d1d046-74e8-4410-a199-9cf54cc7ea8f");
            this.scenePanel.Name = "scenePanel";
            this.scenePanel.OriginalSize = new System.Drawing.Size(200, 200);
            this.scenePanel.Text = "Scene Panel";
            this.scenePanel.Controls.Add(axRenderControl);
            this.axRenderControl.BackColor = System.Drawing.Color.White;
            this.axRenderControl.Dock = System.Windows.Forms.DockStyle.Fill;
            this.axRenderControl.EnableMultiTouch = false;
            this.axRenderControl.FullScreen = false;
            this.axRenderControl.InteractMode = Gvitech.CityMaker.RenderControl.gviInteractMode.gviInteractNormal;
            this.axRenderControl.Location = new System.Drawing.Point(3, 3);
            this.axRenderControl.MouseSelectObjectMask = Gvitech.CityMaker.RenderControl.gviMouseSelectObjectMask.gviSelectNone;
            this.axRenderControl.MouseSnapMode = Gvitech.CityMaker.RenderControl.gviMouseSnapMode.gviMouseSnapDisable;
            this.axRenderControl.Name = "axRenderControl";
            this.axRenderControl.Size = new System.Drawing.Size(543, 483);
            this.axRenderControl.TabIndex = 1;
            this.axRenderControl.UseEarthOrbitManipulator = Gvitech.CityMaker.RenderControl.gviManipulatorMode.gviCityMakerManipulator;

            this.axRenderControl = new Gvitech.CityMaker.Controls.AxRenderControl();


3. During interface design, double-clicking the form cannot be opened:
Just comment these codes.


It's a bit cumbersome, is there a better way?


Criticisms and corrections are welcome, please indicate the source and author for reprinting QQ: 3133952829

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325851735&siteId=291194637