Beispiel #1
0
		public FormMapView(Form parent, string name, SceneFile scene) {
			InitializeComponent();
			
			MdiParent = parent;
			Name = "FormMapView_" + name;
			Tag = name;
			mapViewControl.SceneFile = scene;
		}
Beispiel #2
0
		private void menuMainDataLoadScene_Click(object sender, EventArgs e) {
			var filepath = ShowOpenFileDialog("Scene File (sXXX.ini)|*.ini");
			if (string.IsNullOrEmpty(filepath)) {
				return;
			}

			var file = new SceneFile(filepath);
			var frm = new FormMapView(this, "scene", file);
			frm.Show();
		}