private void SitesCatalog_SiteCopy(object sender, SitesCatalog.SiteOpenedEventArgs e) { if (e.Site == null || string.IsNullOrWhiteSpace(e.Site.Url)) { return; } // Create dialog control to prompt user for site information while passing in source site id that we // will eventually copy from. CopySiteDialogControl copySiteControl = new CopySiteDialogControl(e.Site.ID); // Display dialog control in modal mode BuilderApplication.Instance.ShowWindow(ESRI.ArcGIS.Mapping.Builder.Resources.Strings.CopySite, copySiteControl, true); }
private void SitesCatalog_SiteCopy(object sender, SitesCatalog.SiteOpenedEventArgs e) { if (e.Site == null || string.IsNullOrWhiteSpace(e.Site.Url)) return; // Create dialog control to prompt user for site information while passing in source site id that we // will eventually copy from. CopySiteDialogControl copySiteControl = new CopySiteDialogControl(e.Site.ID); // Display dialog control in modal mode BuilderApplication.Instance.ShowWindow(ESRI.ArcGIS.Mapping.Builder.Resources.Strings.CopySite, copySiteControl, true); }