public void ExplorerObjectDoubleClick(ExplorerObjectEventArgs e) { FormGeoJsonConnection dlg = new FormGeoJsonConnection(); if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) { string connectionString = dlg.ConnectionString; string name = connectionString.ExtractConnectionStringParameter("target"); ConfigConnections connStream = new ConfigConnections(GeoJsonServiceGroupObject.ConfigName, GeoJsonServiceGroupObject.EncKey); connStream.Add(name, connectionString); e.NewExplorerObject = new GeoJsonServiceExplorerObject(this.ParentExplorerObject, name, connectionString); } }
void ConnectionProperties_Click(object sender, EventArgs e) { if (_connectionString == null) { return; } FormGeoJsonConnection dlg = new FormGeoJsonConnection(); dlg.ConnectionString = _connectionString; if (dlg.ShowDialog() == DialogResult.OK) { string connectionString = dlg.ConnectionString; ConfigConnections connStream = new ConfigConnections(GeoJsonServiceGroupObject.ConfigName, GeoJsonServiceGroupObject.EncKey); connStream.Add(_name, connectionString); _connectionString = connectionString; } }