public MetadataLight Clone() { var mdl = new MetadataLight(this.Connection); mdl._schemas = (from s in this._schemas select s.Clone()).ToList(); mdl.Extractor = Extractor; return(mdl); }
private void SelectConnection_ConnectionChanged(object sender, Connection conn) { if (conn == null) { this.performSelection.DataContext = null; return; } try { if (vm.MetadataSelection == null || (vm.CurrentConnection != null && !this.vm.CurrentConnection.Equals(conn))) { var metadataLight = new MetadataLight(conn); this.performSelection.DataContext = vm.MetadataSelection = metadataLight; } } catch (Exception e) { MessageBox.Show(e.Message); } }