protected void ReleaseEvent(ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_Event ifeatureProgress_Event_0) { ifeatureProgress_Event_0.Step -= (new ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_StepEventHandler(this.method_6)); (ifeatureProgress_Event_0 as IReplicaProgress_Event).Startup -= (new IReplicaProgress_StartupEventHandler(this.method_10)); }
private void method_11() { IReplicaDescription rDDescription = new ReplicaDescriptionClass(); rDDescription.Init(this.ienumName_0, this.iworkspaceName_0, this.bool_1, esriDataExtractionType.esriDataCheckOut); rDDescription.ReplicaModelType = esriReplicaModelType.esriModelTypeFullGeodatabase; ICheckOut @out = new CheckOutClass(); ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_Event event2 = @out as ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_Event; base.InitEvent(event2); try { if (this.bool_2) { @out.CheckOutSchema(rDDescription, this.string_0); } else { @out.CheckOutData(rDDescription, this.bool_0, this.string_0); } } catch (Exception exception) { MessageBox.Show(exception.ToString()); } finally { base.ReleaseEvent(event2); } }
private void method_11() { try { IReplicaDescription rSDescription = new ReplicaDescriptionClass(); rSDescription.Init(this.ienumName_0, this.iworkspaceName_0, this.bool_1, esriDataExtractionType.esriDataExtraction); rSDescription.ReplicaModelType = esriReplicaModelType.esriModelTypeFullGeodatabase; IDataExtraction extraction = new DataExtractionClass(); ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_Event event2 = extraction as ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_Event; base.InitEvent(event2); try { if (this.bool_2) { extraction.ExtractSchema(rSDescription, null); } else { extraction.Extract(rSDescription, this.bool_0); } } catch (Exception) { } finally { base.ReleaseEvent(event2); } } catch { } }
private void method_0() { ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_Event pHelper = ExportChangesHelper.m_pHelper; pHelper.Step += (new ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_StepEventHandler(this.method_7)); (pHelper as IReplicaProgress_Event).Startup += (new IReplicaProgress_StartupEventHandler(this.method_11)); ExportChangesHelper.m_pHelper.Do(); }
private void method_0() { this.checkInSetupCtrl_0.Visible = false; this.panelProgress.Visible = true; ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_Event pHelper = CheckInHelper.m_pHelper; pHelper.Step += (new ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_StepEventHandler(this.method_7)); (pHelper as IReplicaProgress_Event).Startup += (new IReplicaProgress_StartupEventHandler(this.method_11)); CheckInHelper.m_pHelper.Do(); }
private void method_11() { ICheckIn @in = new CheckInClass(); ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_Event event2 = @in as ESRI.ArcGIS.GeoDatabaseDistributed.IFeatureProgress_Event; base.InitEvent(event2); if (this.bool_0) { IName name = this.iworkspaceName_0 as IName; IWorkspace workspace = name.Open() as IWorkspace; IWorkspaceReplicas replicas = workspace as IWorkspaceReplicas; IReplica replica = replicas.Replicas.Next(); try { @in.CheckInFromGDB(base.m_MasterWorkspaceName, replica.Name, this.iworkspaceName_0, this.bool_1, false); } catch { } } else { esriExportDataChangesOption esriExportToAccess = esriExportDataChangesOption.esriExportToAccess; if (Path.GetExtension(this.string_0).ToLower() == ".xml") { esriExportToAccess = esriExportDataChangesOption.esriExportToXML; } try { @in.CheckInFromDeltaFile(base.m_MasterWorkspaceName, this.string_1, this.string_0, esriExportToAccess, this.bool_1, false); } catch { } } base.ReleaseEvent(event2); }