void LoadDataset(string name) { FlushDataset(); var dir = Path.Combine(SiteRoot, name); if (!Directory.Exists(dir)) { throw new Exception($"The site directory for {name} doesn't exist"); } Dataset = new SiteDataset(dir); UpdateFromLayers(Dataset.Layers); MapView.Transform = new MapView.DisplayTransform { OffsetX = 0, OffsetY = 0, Scale = 1f }; }
private void test1ToolStripMenuItem_Click(object sender, EventArgs e) { var d = new SiteDataset(@"C:\RP\tiles\sp\landing_site_datasets\site_001"); }
void FlushDataset() { Dataset?.Dispose(); Dataset = null; lvLayers.Items.Clear(); }