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