private void method_5(IMap imap_0, IFeatureWorkspace ifeatureWorkspace_0, IFeatureWorkspace ifeatureWorkspace_1, ICollectionTableVersionChanges icollectionTableVersionChanges_0) { try { IEnumLayer layer = imap_0.get_Layers(null, true); if (layer != null) { for (ILayer layer2 = layer.Next(); layer2 != null; layer2 = layer.Next()) { if (layer2 is IDisplayTable) { IDisplayTable table = layer2 as IDisplayTable; if (this.method_3(table.DisplayTable as IDataset, ifeatureWorkspace_0, ifeatureWorkspace_1, icollectionTableVersionChanges_0)) { this.method_2(layer2 as IDisplayRelationshipClass, table.DisplayTable as IRelQueryTable); } } if (layer2 is IFeatureLayer) { IFeatureLayer layer3 = layer2 as IFeatureLayer; IDataset featureClass = layer3.FeatureClass as IDataset; if (featureClass != null) { this.method_3(featureClass, ifeatureWorkspace_0, ifeatureWorkspace_1, icollectionTableVersionChanges_0); if (featureClass.Workspace == ifeatureWorkspace_0) { IFeatureClass class2 = this.method_1(ifeatureWorkspace_1, featureClass) as IFeatureClass; if (class2 != null) { layer3.FeatureClass = class2; icollectionTableVersionChanges_0.Add(featureClass as ITable, class2 as ITable); } } } } } } } catch (Exception exception) { MessageBox.Show(exception.Message); } }
private bool method_3(IDataset idataset_0, IFeatureWorkspace ifeatureWorkspace_0, IFeatureWorkspace ifeatureWorkspace_1, ICollectionTableVersionChanges icollectionTableVersionChanges_0) { try { if (idataset_0 is IRelQueryTableManage) { (idataset_0 as IRelQueryTableManage).VersionChanged(ifeatureWorkspace_0 as IVersion, ifeatureWorkspace_1 as IVersion, icollectionTableVersionChanges_0 as IEnumTableVersionChanges); icollectionTableVersionChanges_0.Add(idataset_0 as ITable, idataset_0 as ITable); return(true); } } catch { } return(false); }
private void method_4(IStandaloneTableCollection istandaloneTableCollection_0, IFeatureWorkspace ifeatureWorkspace_0, IFeatureWorkspace ifeatureWorkspace_1, ICollectionTableVersionChanges icollectionTableVersionChanges_0) { try { IDisplayTable table = null; for (int i = 0; i < istandaloneTableCollection_0.StandaloneTableCount; i++) { IStandaloneTable table2 = istandaloneTableCollection_0.get_StandaloneTable(i); if (table2 is IDisplayTable) { table = table2 as IDisplayTable; if (this.method_3(table.DisplayTable as IDataset, ifeatureWorkspace_0, ifeatureWorkspace_1, icollectionTableVersionChanges_0)) { this.method_2(table2 as IDisplayRelationshipClass, table.DisplayTable as IRelQueryTable); } } IDataset dataset = table2.Table as IDataset; if (dataset != null) { this.method_3(dataset, ifeatureWorkspace_0, ifeatureWorkspace_1, icollectionTableVersionChanges_0); if (dataset.Workspace == ifeatureWorkspace_0) { ITable newTable = this.method_1(ifeatureWorkspace_1, dataset); if (newTable != null) { table2.Table = newTable; icollectionTableVersionChanges_0.Add(dataset as ITable, newTable); } } } } } catch (Exception exception) { MessageBox.Show(exception.Message); } }