void ConnectionProperties_Click(object sender, EventArgs e) { var dlg = new FormVectorTileCacheConnection(); dlg.ConnectionString = _connectionString; if (dlg.ShowDialog() == DialogResult.OK) { ConfigConnections connStream = new ConfigConnections("VectorTileCache", "b9d6ae5b-9ca1-4a52-890f-caa4009784d4"); connStream.Add(_name, this.ConnectionString = dlg.ConnectionString); } }
public void ExplorerObjectDoubleClick(ExplorerObjectEventArgs e) { var dlg = new FormVectorTileCacheConnection(); if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { ConfigConnections connStream = new ConfigConnections("VectorTileCache", "b9d6ae5b-9ca1-4a52-890f-caa4009784d4"); string connectionString = dlg.ConnectionString; string id = dlg.VectorTileCacheName; id = connStream.GetName(id); connStream.Add(id, connectionString); e.NewExplorerObject = new VectorTileCacheDatasetExplorerObject(this.ParentExplorerObject, id, connectionString); } }