diff --git a/Content/ArcGISOnlineConnect/ArcGISOnlineConnect (C# 6.0).md b/Content/ArcGISOnlineConnect/ArcGISOnlineConnect (C# 6.0).md index 791597db..3ee22ad0 100644 --- a/Content/ArcGISOnlineConnect/ArcGISOnlineConnect (C# 6.0).md +++ b/Content/ArcGISOnlineConnect/ArcGISOnlineConnect (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Content/ArcGISOnlineConnect/ReadMe.md b/Content/ArcGISOnlineConnect/ReadMe.md index 791597db..3ee22ad0 100644 --- a/Content/ArcGISOnlineConnect/ReadMe.md +++ b/Content/ArcGISOnlineConnect/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Content/CustomCatalogContext/CustomCatalogContext (C# 6.0).md b/Content/CustomCatalogContext/CustomCatalogContext (C# 6.0).md index a880b7bf..b17ac182 100644 --- a/Content/CustomCatalogContext/CustomCatalogContext (C# 6.0).md +++ b/Content/CustomCatalogContext/CustomCatalogContext (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Content Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Content/CustomCatalogContext/ReadMe.md b/Content/CustomCatalogContext/ReadMe.md index a880b7bf..b17ac182 100644 --- a/Content/CustomCatalogContext/ReadMe.md +++ b/Content/CustomCatalogContext/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Content Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Content/ExcelDropHandler/ExcelDropHandler (C# 6.0).md b/Content/ExcelDropHandler/ExcelDropHandler (C# 6.0).md index 98038350..a4faa19f 100644 --- a/Content/ExcelDropHandler/ExcelDropHandler (C# 6.0).md +++ b/Content/ExcelDropHandler/ExcelDropHandler (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Content Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Content/ExcelDropHandler/ReadMe.md b/Content/ExcelDropHandler/ReadMe.md index 98038350..a4faa19f 100644 --- a/Content/ExcelDropHandler/ReadMe.md +++ b/Content/ExcelDropHandler/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Content Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Content/FolderConnectionManager/FolderConnectionManager (C# 6.0).md b/Content/FolderConnectionManager/FolderConnectionManager (C# 6.0).md index f570c38b..353e01e5 100644 --- a/Content/FolderConnectionManager/FolderConnectionManager (C# 6.0).md +++ b/Content/FolderConnectionManager/FolderConnectionManager (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Content Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Content/FolderConnectionManager/Readme.md b/Content/FolderConnectionManager/Readme.md index f570c38b..353e01e5 100644 --- a/Content/FolderConnectionManager/Readme.md +++ b/Content/FolderConnectionManager/Readme.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Content Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Content/WorkwithProjects/ReadMe.md b/Content/WorkwithProjects/ReadMe.md index 3b74674c..68fa7f1f 100644 --- a/Content/WorkwithProjects/ReadMe.md +++ b/Content/WorkwithProjects/ReadMe.md @@ -17,7 +17,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Content/WorkwithProjects/WorkwithProjects (C#).md b/Content/WorkwithProjects/WorkwithProjects (C#).md index 3b74674c..68fa7f1f 100644 --- a/Content/WorkwithProjects/WorkwithProjects (C#).md +++ b/Content/WorkwithProjects/WorkwithProjects (C#).md @@ -17,7 +17,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/CoreHost/CoreHostGDB/CoreHostGDB (C# 6.0).md b/CoreHost/CoreHostGDB/CoreHostGDB (C# 6.0).md index 4fbeef6e..73526b68 100644 --- a/CoreHost/CoreHostGDB/CoreHostGDB (C# 6.0).md +++ b/CoreHost/CoreHostGDB/CoreHostGDB (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Console Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/CoreHost/CoreHostGDB/ReadMe.md b/CoreHost/CoreHostGDB/ReadMe.md index 4fbeef6e..73526b68 100644 --- a/CoreHost/CoreHostGDB/ReadMe.md +++ b/CoreHost/CoreHostGDB/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Console Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/CoreHost/CoreHostSample/CoreHostSample (C# 6.0).md b/CoreHost/CoreHostSample/CoreHostSample (C# 6.0).md index 70de4d17..f9ab1253 100644 --- a/CoreHost/CoreHostSample/CoreHostSample (C# 6.0).md +++ b/CoreHost/CoreHostSample/CoreHostSample (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Console Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/CoreHost/CoreHostSample/ReadMe.md b/CoreHost/CoreHostSample/ReadMe.md index 70de4d17..f9ab1253 100644 --- a/CoreHost/CoreHostSample/ReadMe.md +++ b/CoreHost/CoreHostSample/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Console Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/DataReviewer/ReviewerAddin/ReadMe.md b/DataReviewer/ReviewerAddin/ReadMe.md index 1e17f92b..02de3bc5 100644 --- a/DataReviewer/ReviewerAddin/ReadMe.md +++ b/DataReviewer/ReviewerAddin/ReadMe.md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: DataReviewer Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/DataReviewer/ReviewerAddin/ReviewerAddin (C# 6.0).md b/DataReviewer/ReviewerAddin/ReviewerAddin (C# 6.0).md index 1e17f92b..02de3bc5 100644 --- a/DataReviewer/ReviewerAddin/ReviewerAddin (C# 6.0).md +++ b/DataReviewer/ReviewerAddin/ReviewerAddin (C# 6.0).md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: DataReviewer Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/ConstructionTool/ConstructionTool (C# 6.0).md b/Editing/ConstructionTool/ConstructionTool (C# 6.0).md index 48da959c..c2777376 100644 --- a/Editing/ConstructionTool/ConstructionTool (C# 6.0).md +++ b/Editing/ConstructionTool/ConstructionTool (C# 6.0).md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/ConstructionTool/ReadMe.md b/Editing/ConstructionTool/ReadMe.md index 48da959c..c2777376 100644 --- a/Editing/ConstructionTool/ReadMe.md +++ b/Editing/ConstructionTool/ReadMe.md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/ConstructionToolWithOptions/ConstructionToolWithOptions (C# 6.0).md b/Editing/ConstructionToolWithOptions/ConstructionToolWithOptions (C# 6.0).md index 3b1e210e..8b2d1425 100644 --- a/Editing/ConstructionToolWithOptions/ConstructionToolWithOptions (C# 6.0).md +++ b/Editing/ConstructionToolWithOptions/ConstructionToolWithOptions (C# 6.0).md @@ -16,7 +16,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/ConstructionToolWithOptions/ReadMe.md b/Editing/ConstructionToolWithOptions/ReadMe.md index 3b1e210e..8b2d1425 100644 --- a/Editing/ConstructionToolWithOptions/ReadMe.md +++ b/Editing/ConstructionToolWithOptions/ReadMe.md @@ -16,7 +16,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/CrowdPlannerTool/CPDockpaneViewModel.cs b/Editing/CrowdPlannerTool/CPDockpaneViewModel.cs index 810139ab..9b412c08 100644 --- a/Editing/CrowdPlannerTool/CPDockpaneViewModel.cs +++ b/Editing/CrowdPlannerTool/CPDockpaneViewModel.cs @@ -35,7 +35,7 @@ limitations under the License. namespace CrowdPlannerTool { - #region Showbutton + #region Showbutton /// /// Button implementation to show the DockPane. /// @@ -46,9 +46,9 @@ protected override void OnClick() CPDockpaneViewModel.Show(); } } - #endregion + #endregion - #region DockPane Activate + #region DockPane Activate internal class CPDockpaneViewModel : DockPane { private const string _dockPaneID = "CrowdPlannerTool_CPDockpane"; @@ -436,49 +436,52 @@ public async void ResetValues(string settingsValue) } ArcGIS.Core.Data.Table CrowdTable = await QueuedTask.Run(() => CrowdLayer.GetTable()); - var editOperation = new EditOperation(); - editOperation.Callback(context => + await QueuedTask.Run(() => { - QueryFilter QF = new QueryFilter + var editOperation = new EditOperation(); + editOperation.Callback(context => { - WhereClause = "LOW > 0" - }; + QueryFilter QF = new QueryFilter + { - RowCursor CrowdRow = CrowdTable.Search(QF, false); + WhereClause = "LOW > 0" + }; - while (CrowdRow.MoveNext()) - { + RowCursor CrowdRow = CrowdTable.Search(QF, false); - using (Row currentRow = CrowdRow.Current) + while (CrowdRow.MoveNext()) { - var squarefeetValue = currentRow["Shape_Area"]; - long squarefeetValueLong; - squarefeetValueLong = Convert.ToInt64(squarefeetValue); - - if (settingsValue == "current") + using (Row currentRow = CrowdRow.Current) { - currentRow["High"] = (squarefeetValueLong / HighSetting); - currentRow["Medium"] = (squarefeetValueLong / MediumSetting); - currentRow["Low"] = (squarefeetValueLong / LowSetting); - currentRow["TargetSetting"] = TargetSetting; - currentRow["HighSetting"] = HighSetting; - currentRow["MediumSetting"] = MediumSetting; - currentRow["LowSetting"] = LowSetting; - } - else if (settingsValue == "default") - { - currentRow["High"] = squarefeetValueLong / 2.5; - currentRow["Medium"] = squarefeetValueLong / 4.5; - currentRow["Low"] = squarefeetValueLong / 10; - currentRow["TargetSetting"] = TargetSetting; - currentRow["HighSetting"] = 2.5; - currentRow["MediumSetting"] = 4.5; - currentRow["LowSetting"] = 10; - } + var squarefeetValue = currentRow["Shape_Area"]; + long squarefeetValueLong; + squarefeetValueLong = Convert.ToInt64(squarefeetValue); + + if (settingsValue == "current") + { + currentRow["High"] = (squarefeetValueLong / HighSetting); + currentRow["Medium"] = (squarefeetValueLong / MediumSetting); + currentRow["Low"] = (squarefeetValueLong / LowSetting); + currentRow["TargetSetting"] = TargetSetting; + currentRow["HighSetting"] = HighSetting; + currentRow["MediumSetting"] = MediumSetting; + currentRow["LowSetting"] = LowSetting; + } + + else if (settingsValue == "default") + { + currentRow["High"] = squarefeetValueLong / 2.5; + currentRow["Medium"] = squarefeetValueLong / 4.5; + currentRow["Low"] = squarefeetValueLong / 10; + currentRow["TargetSetting"] = TargetSetting; + currentRow["HighSetting"] = 2.5; + currentRow["MediumSetting"] = 4.5; + currentRow["LowSetting"] = 10; + } // Store the values currentRow.Store(); @@ -486,13 +489,15 @@ public async void ResetValues(string settingsValue) // Has to be called after the store too. context.Invalidate(currentRow); + } } - } - CrowdTable.Dispose(); + CrowdTable.Dispose(); // close the editOperation.Callback(context }, CrowdTable); - await editOperation.ExecuteAsync(); + editOperation.ExecuteAsync(); + + }); // new closing QueuedTask GetTotalValues(); diff --git a/Editing/CrowdPlannerTool/CrowdPlannerTool (C# 6.0).md b/Editing/CrowdPlannerTool/CrowdPlannerTool (C# 6.0).md index 22aa2253..ea31a750 100644 --- a/Editing/CrowdPlannerTool/CrowdPlannerTool (C# 6.0).md +++ b/Editing/CrowdPlannerTool/CrowdPlannerTool (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/CrowdPlannerTool/CrowdPlannerTool.xml b/Editing/CrowdPlannerTool/CrowdPlannerTool.xml index 534b0126..742460fa 100644 --- a/Editing/CrowdPlannerTool/CrowdPlannerTool.xml +++ b/Editing/CrowdPlannerTool/CrowdPlannerTool.xml @@ -74,5 +74,35 @@ False to prevent Pro from closing, otherwise True + + + GeneratedInternalTypeHelper + + + + + CreateInstance + + + + + GetPropertyValue + + + + + SetPropertyValue + + + + + CreateDelegate + + + + + AddEventHandler + + diff --git a/Editing/CrowdPlannerTool/ReadMe.md b/Editing/CrowdPlannerTool/ReadMe.md index 22aa2253..ea31a750 100644 --- a/Editing/CrowdPlannerTool/ReadMe.md +++ b/Editing/CrowdPlannerTool/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/DivideLines/DivideLines (C# 6.0).md b/Editing/DivideLines/DivideLines (C# 6.0).md index fad1adcc..bcdfdc9f 100644 --- a/Editing/DivideLines/DivideLines (C# 6.0).md +++ b/Editing/DivideLines/DivideLines (C# 6.0).md @@ -12,7 +12,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/DivideLines/ReadMe.md b/Editing/DivideLines/ReadMe.md index fad1adcc..bcdfdc9f 100644 --- a/Editing/DivideLines/ReadMe.md +++ b/Editing/DivideLines/ReadMe.md @@ -12,7 +12,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/ExtendTool/ExtendTool (C# 6.0).md b/Editing/ExtendTool/ExtendTool (C# 6.0).md index 203c3a76..bc4b86a4 100644 --- a/Editing/ExtendTool/ExtendTool (C# 6.0).md +++ b/Editing/ExtendTool/ExtendTool (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/ExtendTool/ReadMe.md b/Editing/ExtendTool/ReadMe.md index 203c3a76..bc4b86a4 100644 --- a/Editing/ExtendTool/ReadMe.md +++ b/Editing/ExtendTool/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/InspectorTool/InspectorTool (C# 6.0).md b/Editing/InspectorTool/InspectorTool (C# 6.0).md index 31678763..6b20eeba 100644 --- a/Editing/InspectorTool/InspectorTool (C# 6.0).md +++ b/Editing/InspectorTool/InspectorTool (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/InspectorTool/ReadMe.md b/Editing/InspectorTool/ReadMe.md index 31678763..6b20eeba 100644 --- a/Editing/InspectorTool/ReadMe.md +++ b/Editing/InspectorTool/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/MainConnectorManhole/MainConnectorManhole (C# 6.0).md b/Editing/MainConnectorManhole/MainConnectorManhole (C# 6.0).md index 45e00d2a..4a43e28c 100644 --- a/Editing/MainConnectorManhole/MainConnectorManhole (C# 6.0).md +++ b/Editing/MainConnectorManhole/MainConnectorManhole (C# 6.0).md @@ -12,7 +12,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/MainConnectorManhole/ReadMe.md b/Editing/MainConnectorManhole/ReadMe.md index 45e00d2a..4a43e28c 100644 --- a/Editing/MainConnectorManhole/ReadMe.md +++ b/Editing/MainConnectorManhole/ReadMe.md @@ -12,7 +12,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/ReplaceSketch/ReadMe.md b/Editing/ReplaceSketch/ReadMe.md index 74deaecc..4d204689 100644 --- a/Editing/ReplaceSketch/ReadMe.md +++ b/Editing/ReplaceSketch/ReadMe.md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/ReplaceSketch/ReplaceSketch (C# 6.0).md b/Editing/ReplaceSketch/ReplaceSketch (C# 6.0).md index 74deaecc..4d204689 100644 --- a/Editing/ReplaceSketch/ReplaceSketch (C# 6.0).md +++ b/Editing/ReplaceSketch/ReplaceSketch (C# 6.0).md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/RestartSketch/ReadMe.md b/Editing/RestartSketch/ReadMe.md index 67f7f6a5..12b400b1 100644 --- a/Editing/RestartSketch/ReadMe.md +++ b/Editing/RestartSketch/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/RestartSketch/RestartSketch (C# 6.0).md b/Editing/RestartSketch/RestartSketch (C# 6.0).md index 67f7f6a5..12b400b1 100644 --- a/Editing/RestartSketch/RestartSketch (C# 6.0).md +++ b/Editing/RestartSketch/RestartSketch (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/SketchToolDemo/CutTool.cs b/Editing/SketchToolDemo/CutTool.cs index 2df320d8..77ca106a 100644 --- a/Editing/SketchToolDemo/CutTool.cs +++ b/Editing/SketchToolDemo/CutTool.cs @@ -74,19 +74,19 @@ protected Task ExecuteCut(Geometry geometry) if (editableLayers.Count() == 0) return Task.FromResult(false); - // create an edit operation - EditOperation cutOperation = new EditOperation() - { - Name = "Cut Elements", - ProgressMessage = "Working...", - CancelMessage = "Operation canceled.", - ErrorMessage = "Error cutting polygons", - SelectModifiedFeatures = false, - SelectNewFeatures = false - }; - - // initialize a list of ObjectIDs that need to be cut - var cutOIDs = new List(); + // create an edit operation + EditOperation cutOperation = new EditOperation() + { + Name = "Cut Elements", + ProgressMessage = "Working...", + CancelMessage = "Operation canceled.", + ErrorMessage = "Error cutting polygons", + SelectModifiedFeatures = false, + SelectNewFeatures = false + }; + + // initialize a list of ObjectIDs that need to be cut + var cutOIDs = new List(); // for each of the layers foreach (FeatureLayer editableFeatureLayer in editableLayers) @@ -105,10 +105,13 @@ protected Task ExecuteCut(Geometry geometry) while (rowCursor.MoveNext()) { var feature = rowCursor.Current as Feature; - if (feature.GetShape() != null) + var geomTest = feature.GetShape(); + if (geomTest != null) { + // make sure we have the same projection for geomProjected and geomTest + var geomProjected = GeometryEngine.Instance.Project(geometry, geomTest.SpatialReference); // we are looking for polygons are completely intersected by the cut line - if (GeometryEngine.Instance.Relate(geometry, feature.GetShape(), "TT*F*****")) + if (GeometryEngine.Instance.Relate(geomProjected, geomTest, "TT*F*****")) { // add the current feature to the overall list of features to cut cutOIDs.Add(rowCursor.Current.GetObjectID()); diff --git a/Editing/SketchToolDemo/ReadMe.md b/Editing/SketchToolDemo/ReadMe.md index 0db98288..a67b137c 100644 --- a/Editing/SketchToolDemo/ReadMe.md +++ b/Editing/SketchToolDemo/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/SketchToolDemo/SketchToolDemo (C# 6.0).md b/Editing/SketchToolDemo/SketchToolDemo (C# 6.0).md index 0db98288..a67b137c 100644 --- a/Editing/SketchToolDemo/SketchToolDemo (C# 6.0).md +++ b/Editing/SketchToolDemo/SketchToolDemo (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/UpdateAttributesWithSketch/ReadMe.md b/Editing/UpdateAttributesWithSketch/ReadMe.md index 04528b64..df09b987 100644 --- a/Editing/UpdateAttributesWithSketch/ReadMe.md +++ b/Editing/UpdateAttributesWithSketch/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Editing/UpdateAttributesWithSketch/UpdateAttributesWithSketch (C#).md b/Editing/UpdateAttributesWithSketch/UpdateAttributesWithSketch (C#).md index 04528b64..df09b987 100644 --- a/Editing/UpdateAttributesWithSketch/UpdateAttributesWithSketch (C#).md +++ b/Editing/UpdateAttributesWithSketch/UpdateAttributesWithSketch (C#).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Editing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/BackStage_PropertyPage/BackStage_PropertyPage (C# 6.0).md b/Framework/BackStage_PropertyPage/BackStage_PropertyPage (C# 6.0).md index d9be5f43..18e55ef8 100644 --- a/Framework/BackStage_PropertyPage/BackStage_PropertyPage (C# 6.0).md +++ b/Framework/BackStage_PropertyPage/BackStage_PropertyPage (C# 6.0).md @@ -17,7 +17,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/BackStage_PropertyPage/ReadMe.md b/Framework/BackStage_PropertyPage/ReadMe.md index d9be5f43..18e55ef8 100644 --- a/Framework/BackStage_PropertyPage/ReadMe.md +++ b/Framework/BackStage_PropertyPage/ReadMe.md @@ -17,7 +17,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/BookmarksComboBox/BookmarkComboBox (C# 6.0).md b/Framework/BookmarksComboBox/BookmarkComboBox (C# 6.0).md index c256d606..daae5e95 100644 --- a/Framework/BookmarksComboBox/BookmarkComboBox (C# 6.0).md +++ b/Framework/BookmarksComboBox/BookmarkComboBox (C# 6.0).md @@ -16,7 +16,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/BookmarksComboBox/ReadMe.md b/Framework/BookmarksComboBox/ReadMe.md index c256d606..daae5e95 100644 --- a/Framework/BookmarksComboBox/ReadMe.md +++ b/Framework/BookmarksComboBox/ReadMe.md @@ -16,7 +16,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/CommandFilter/CommandFilter (C# 6.0).md b/Framework/CommandFilter/CommandFilter (C# 6.0).md index 75eab206..0193cc0b 100644 --- a/Framework/CommandFilter/CommandFilter (C# 6.0).md +++ b/Framework/CommandFilter/CommandFilter (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/CommandFilter/ReadMe.md b/Framework/CommandFilter/ReadMe.md index 75eab206..0193cc0b 100644 --- a/Framework/CommandFilter/ReadMe.md +++ b/Framework/CommandFilter/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/ConditionQuery/ConditionQuery (C# 6.0).md b/Framework/ConditionQuery/ConditionQuery (C# 6.0).md index 85f8450b..63729a5f 100644 --- a/Framework/ConditionQuery/ConditionQuery (C# 6.0).md +++ b/Framework/ConditionQuery/ConditionQuery (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/ConditionQuery/ReadMe.md b/Framework/ConditionQuery/ReadMe.md index 85f8450b..63729a5f 100644 --- a/Framework/ConditionQuery/ReadMe.md +++ b/Framework/ConditionQuery/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/ConfigWithMap/ConfigWithMap (C# 6.0).md b/Framework/ConfigWithMap/ConfigWithMap (C# 6.0).md index b92a1837..eccccc91 100644 --- a/Framework/ConfigWithMap/ConfigWithMap (C# 6.0).md +++ b/Framework/ConfigWithMap/ConfigWithMap (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/ConfigWithMap/Readme.md b/Framework/ConfigWithMap/Readme.md index b92a1837..eccccc91 100644 --- a/Framework/ConfigWithMap/Readme.md +++ b/Framework/ConfigWithMap/Readme.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/ConfigWithStartWizard/ConfigWithStartWizard (C# 6.0).md b/Framework/ConfigWithStartWizard/ConfigWithStartWizard (C# 6.0).md index b828e9f7..371c84e0 100644 --- a/Framework/ConfigWithStartWizard/ConfigWithStartWizard (C# 6.0).md +++ b/Framework/ConfigWithStartWizard/ConfigWithStartWizard (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/ConfigWithStartWizard/ReadMe.md b/Framework/ConfigWithStartWizard/ReadMe.md index b828e9f7..371c84e0 100644 --- a/Framework/ConfigWithStartWizard/ReadMe.md +++ b/Framework/ConfigWithStartWizard/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/CustomEvent/CustomEvent (C# 6.0).md b/Framework/CustomEvent/CustomEvent (C# 6.0).md index bb4325f9..279d9104 100644 --- a/Framework/CustomEvent/CustomEvent (C# 6.0).md +++ b/Framework/CustomEvent/CustomEvent (C# 6.0).md @@ -1,7 +1,8 @@ ## CustomEvent -Create a custom event argument class to contain any information that needs to be passed with your event. In this case, the old and new caption for our custom app name changed event. +Create a custom event argument class to contain any information that needs to be passed with your event. In this case, the old and new caption for our custom app name changed event. +Derived from [ArcGIS.Core.Events.EventBase](https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic7815.html) @@ -13,7 +14,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 @@ -41,7 +42,14 @@ Visual Studio: 2015, 2017 ## How to use the sample -Derive from +1. In Visual Studio click the Build menu. Then select Build Solution. +1. Click Start button to open ArcGIS Pro. +1. ArcGIS Pro will open. +1. Open any existing project or create a blank map. +1. Click on the Add-in tab on the ribbon and the click on the "Change Name" button to initiate a name change. +1. Note that the pop-up dialog is instantiated from the event subscriber method. +![UI](Screenshots/Screen1.png) + diff --git a/Framework/CustomEvent/CustomEvent.csproj b/Framework/CustomEvent/CustomEvent.csproj index 5a1c1e5d..7be37dc0 100644 --- a/Framework/CustomEvent/CustomEvent.csproj +++ b/Framework/CustomEvent/CustomEvent.csproj @@ -99,6 +99,10 @@ + + + + diff --git a/Framework/CustomEvent/CustomEvent.xml b/Framework/CustomEvent/CustomEvent.xml index 0f8c41d6..9176a54d 100644 --- a/Framework/CustomEvent/CustomEvent.xml +++ b/Framework/CustomEvent/CustomEvent.xml @@ -6,11 +6,18 @@ - Create a custom event argument class to contain any information that needs - to be passed with your event. In this case, the old and new caption for - our custom app name changed event. + Create a custom event argument class to contain any information that needs to be passed with your event. In this case, the old and new caption for our custom app name changed event. + Derived from <see cref="ArcGIS.Core.Events.EventBase"/> - Derive from + + 1. In Visual Studio click the Build menu. Then select Build Solution. + 1. Click Start button to open ArcGIS Pro. + 1. ArcGIS Pro will open. + 1. Open any existing project or create a blank map. + 1. Click on the Add-in tab on the ribbon and the click on the "Change Name" button to initiate a name change. + 1. Note that the pop-up dialog is instantiated from the event subscriber method. + ![UI](Screenshots/Screen1.png) + @@ -63,11 +70,18 @@ - Create a custom event argument class to contain any information that needs - to be passed with your event. In this case, the old and new caption for - our custom app name changed event. + Create a custom event argument class to contain any information that needs to be passed with your event. In this case, the old and new caption for our custom app name changed event. + Derived from [ArcGIS.Core.Events.EventBase](https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic7815.html) - Derive from + + 1. In Visual Studio click the Build menu. Then select Build Solution. + 1. Click Start button to open ArcGIS Pro. + 1. ArcGIS Pro will open. + 1. Open any existing project or create a blank map. + 1. Click on the Add-in tab on the ribbon and the click on the "Change Name" button to initiate a name change. + 1. Note that the pop-up dialog is instantiated from the event subscriber method. + ![UI](Screenshots/Screen1.png) + diff --git a/Framework/CustomEvent/Module1.cs b/Framework/CustomEvent/Module1.cs index 3aa665de..85e1174c 100644 --- a/Framework/CustomEvent/Module1.cs +++ b/Framework/CustomEvent/Module1.cs @@ -32,128 +32,143 @@ limitations under the License. namespace CustomEvent { - /// - /// Create a custom event argument class to contain any information that needs - /// to be passed with your event. In this case, the old and new caption for - /// our custom app name changed event. - /// - /// Derive from - public class NameChangedEventArgs : EventBase - { - - /// - /// Gets the old name - /// - public string OldName { get; private set; } - /// - /// Gets the new name + /// Create a custom event argument class to contain any information that needs to be passed with your event. In this case, the old and new caption for our custom app name changed event. + /// Derived from <see cref="ArcGIS.Core.Events.EventBase"/> /// - public string NewName { get; private set; } - - /// - /// Constructor. Create a name changed event passing in the new and old names - /// - /// The old name - /// The new name - public NameChangedEventArgs(string oldName, string newName) + /// + /// 1. In Visual Studio click the Build menu. Then select Build Solution. + /// 1. Click Start button to open ArcGIS Pro. + /// 1. ArcGIS Pro will open. + /// 1. Open any existing project or create a blank map. + /// 1. Click on the Add-in tab on the ribbon and the click on the "Change Name" button to initiate a name change. + /// 1. Note that the pop-up dialog is instantiated from the event subscriber method. + /// ![UI](Screenshots/Screen1.png) + /// + public class NameChangedEventArgs : EventBase { - OldName = oldName; - NewName = newName; - } - } - /// - /// A custom CompositePresentationEvent to be published when we change the name - /// of Pro - /// - public class NameChangedEvent : CompositePresentationEvent - { - - /// - /// Allow subscribers to register for our custom event - /// - /// The callback which will be used to notify the subscriber - /// Set to true to retain a strong reference - /// - public static SubscriptionToken Subscribe(Action action, bool keepSubscriberReferenceAlive = false) - { - return FrameworkApplication.EventAggregator.GetEvent() - .Register(action, keepSubscriberReferenceAlive); + /// + /// Gets the old name + /// + public string OldName { get; private set; } + + /// + /// Gets the new name + /// + public string NewName { get; private set; } + + /// + /// Constructor. Create a name changed event passing in the new and old names + /// + /// The old name + /// The new name + public NameChangedEventArgs(string oldName, string newName) + { + OldName = oldName; + NewName = newName; + } } /// - /// Allow subscribers to unregister from our custom event - /// - /// The action that will be unsubscribed - public static void Unsubscribe(Action subscriber) - { - FrameworkApplication.EventAggregator.GetEvent().Unregister(subscriber); - } - /// - /// Allow subscribers to unregister from our custom event + /// A custom CompositePresentationEvent to be published when we change the name + /// of Pro /// - /// The token that will be used to find the subscriber to unsubscribe - public static void Unsubscribe(SubscriptionToken token) + public class NameChangedEvent : CompositePresentationEvent { - FrameworkApplication.EventAggregator.GetEvent().Unregister(token); - } - /// - /// Event owner calls publish to raise the event and notify subscribers - /// - /// The associated event information - internal static void Publish(NameChangedEventArgs payload) - { - FrameworkApplication.EventAggregator.GetEvent().Broadcast(payload); + /// + /// Allow subscribers to register for our custom event + /// + /// The callback which will be used to notify the subscriber + /// Set to true to retain a strong reference + /// + public static SubscriptionToken Subscribe(Action action, bool keepSubscriberReferenceAlive = false) + { + return FrameworkApplication.EventAggregator.GetEvent() + .Register(action, keepSubscriberReferenceAlive); + } + + /// + /// Allow subscribers to unregister from our custom event + /// + /// The action that will be unsubscribed + public static void Unsubscribe(Action subscriber) + { + FrameworkApplication.EventAggregator.GetEvent().Unregister(subscriber); + } + /// + /// Allow subscribers to unregister from our custom event + /// + /// The token that will be used to find the subscriber to unsubscribe + public static void Unsubscribe(SubscriptionToken token) + { + FrameworkApplication.EventAggregator.GetEvent().Unregister(token); + } + + /// + /// Event owner calls publish to raise the event and notify subscribers + /// + /// The associated event information + internal static void Publish(NameChangedEventArgs payload) + { + FrameworkApplication.EventAggregator.GetEvent().Broadcast(payload); + } } - } - - /// - /// Create a custom event argument class to contain any information that needs - /// to be passed with your event. In this case, the old and new caption for - /// our custom app name changed event. - /// - /// Derive from - internal class Module1 : Module - { - private static Module1 _this = null; /// - /// Retrieve the singleton instance to this module here + /// Create a custom event argument class to contain any information that needs to be passed with your event. In this case, the old and new caption for our custom app name changed event. + /// Derived from [ArcGIS.Core.Events.EventBase](https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic7815.html) /// - public static Module1 Current + /// + /// 1. In Visual Studio click the Build menu. Then select Build Solution. + /// 1. Click Start button to open ArcGIS Pro. + /// 1. ArcGIS Pro will open. + /// 1. Open any existing project or create a blank map. + /// 1. Click on the Add-in tab on the ribbon and the click on the "Change Name" button to initiate a name change. + /// 1. Note that the pop-up dialog is instantiated from the event subscriber method. + /// ![UI](Screenshots/Screen1.png) + /// + internal class Module1 : Module { - get - { - return _this ?? (_this = (Module1)FrameworkApplication.FindModule("CustomEvent_Module")); - } - } - - /// - /// Internal constructor. We use it as a convenient location to subscribe to our custom event - /// - /// The constructor will be called when the button is first clicked - internal Module1() - { - NameChangedEvent.Subscribe((args) => { - MessageBox.Show($"Name has changed:\r\nOld: {args.OldName}\r\nNew: {args.NewName}", "NameChangedEvent"); - }); + private static Module1 _this = null; + + /// + /// Retrieve the singleton instance to this module here + /// + public static Module1 Current + { + get + { + return _this ?? (_this = (Module1)FrameworkApplication.FindModule("CustomEvent_Module")); + } + } + + /// + /// Internal constructor. We use it as a convenient location to subscribe to our custom event + /// + /// The constructor will be called when the button is first clicked + internal Module1() + { + NameChangedEvent.Subscribe((args) => + { + MessageBox.Show($"Name has changed:\r\nOld: {args.OldName}\r\nNew: {args.NewName}", "NameChangedEvent"); + }); + + } + #region Overrides + /// + /// Called by Framework when ArcGIS Pro is closing + /// + /// False to prevent Pro from closing, otherwise True + protected override bool CanUnload() + { + //TODO - add your business logic + //return false to ~cancel~ Application close + return true; + } + + #endregion Overrides } - #region Overrides - /// - /// Called by Framework when ArcGIS Pro is closing - /// - /// False to prevent Pro from closing, otherwise True - protected override bool CanUnload() - { - //TODO - add your business logic - //return false to ~cancel~ Application close - return true; - } - - #endregion Overrides - - } } diff --git a/Framework/CustomEvent/ReadMe.md b/Framework/CustomEvent/ReadMe.md index bb4325f9..279d9104 100644 --- a/Framework/CustomEvent/ReadMe.md +++ b/Framework/CustomEvent/ReadMe.md @@ -1,7 +1,8 @@ ## CustomEvent -Create a custom event argument class to contain any information that needs to be passed with your event. In this case, the old and new caption for our custom app name changed event. +Create a custom event argument class to contain any information that needs to be passed with your event. In this case, the old and new caption for our custom app name changed event. +Derived from [ArcGIS.Core.Events.EventBase](https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic7815.html) @@ -13,7 +14,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 @@ -41,7 +42,14 @@ Visual Studio: 2015, 2017 ## How to use the sample -Derive from +1. In Visual Studio click the Build menu. Then select Build Solution. +1. Click Start button to open ArcGIS Pro. +1. ArcGIS Pro will open. +1. Open any existing project or create a blank map. +1. Click on the Add-in tab on the ribbon and the click on the "Change Name" button to initiate a name change. +1. Note that the pop-up dialog is instantiated from the event subscriber method. +![UI](Screenshots/Screen1.png) + diff --git a/Framework/CustomEvent/Screenshots/Screen1.png b/Framework/CustomEvent/Screenshots/Screen1.png new file mode 100644 index 00000000..a3782cb7 Binary files /dev/null and b/Framework/CustomEvent/Screenshots/Screen1.png differ diff --git a/Framework/CustomStyling/CustomStyling (C# 6.0).md b/Framework/CustomStyling/CustomStyling (C# 6.0).md index b344167b..40ba7f75 100644 --- a/Framework/CustomStyling/CustomStyling (C# 6.0).md +++ b/Framework/CustomStyling/CustomStyling (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/CustomStyling/ReadMe.md b/Framework/CustomStyling/ReadMe.md index b344167b..40ba7f75 100644 --- a/Framework/CustomStyling/ReadMe.md +++ b/Framework/CustomStyling/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/DockPaneBookmarkAdvanced/Advanced UI Demo (C# 7.0).md b/Framework/DockPaneBookmarkAdvanced/Advanced UI Demo (C# 7.0).md index 1697c798..c620dc17 100644 --- a/Framework/DockPaneBookmarkAdvanced/Advanced UI Demo (C# 7.0).md +++ b/Framework/DockPaneBookmarkAdvanced/Advanced UI Demo (C# 7.0).md @@ -17,7 +17,7 @@ Language: C# 7.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/DockPaneBookmarkAdvanced/ReadMe.md b/Framework/DockPaneBookmarkAdvanced/ReadMe.md index 1697c798..c620dc17 100644 --- a/Framework/DockPaneBookmarkAdvanced/ReadMe.md +++ b/Framework/DockPaneBookmarkAdvanced/ReadMe.md @@ -17,7 +17,7 @@ Language: C# 7.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/DockpaneSimple/DockpaneSimple (C# 6.0).md b/Framework/DockpaneSimple/DockpaneSimple (C# 6.0).md index 80c4ac2d..b9b64777 100644 --- a/Framework/DockpaneSimple/DockpaneSimple (C# 6.0).md +++ b/Framework/DockpaneSimple/DockpaneSimple (C# 6.0).md @@ -20,7 +20,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/DockpaneSimple/ReadMe.md b/Framework/DockpaneSimple/ReadMe.md index 80c4ac2d..b9b64777 100644 --- a/Framework/DockpaneSimple/ReadMe.md +++ b/Framework/DockpaneSimple/ReadMe.md @@ -20,7 +20,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/DynamicMenu/DynamicMenu (C# 6.0).md b/Framework/DynamicMenu/DynamicMenu (C# 6.0).md index bc3a0cc9..7fe0b411 100644 --- a/Framework/DynamicMenu/DynamicMenu (C# 6.0).md +++ b/Framework/DynamicMenu/DynamicMenu (C# 6.0).md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/DynamicMenu/ReadMe.md b/Framework/DynamicMenu/ReadMe.md index bc3a0cc9..7fe0b411 100644 --- a/Framework/DynamicMenu/ReadMe.md +++ b/Framework/DynamicMenu/ReadMe.md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/Gallery/GalleryDemo (C# 6.0).md b/Framework/Gallery/GalleryDemo (C# 6.0).md index 0f1aa567..96aa2d54 100644 --- a/Framework/Gallery/GalleryDemo (C# 6.0).md +++ b/Framework/Gallery/GalleryDemo (C# 6.0).md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/Gallery/ReadMe.md b/Framework/Gallery/ReadMe.md index 0f1aa567..96aa2d54 100644 --- a/Framework/Gallery/ReadMe.md +++ b/Framework/Gallery/ReadMe.md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/HookProCommands/HookProCommands (C# 6.0).md b/Framework/HookProCommands/HookProCommands (C# 6.0).md index 449307ce..ceac28ec 100644 --- a/Framework/HookProCommands/HookProCommands (C# 6.0).md +++ b/Framework/HookProCommands/HookProCommands (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/HookProCommands/ReadMe.md b/Framework/HookProCommands/ReadMe.md index 449307ce..ceac28ec 100644 --- a/Framework/HookProCommands/ReadMe.md +++ b/Framework/HookProCommands/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/InsertIntoContextMenu/InsertIntoContextMenu (C# 6.0).md b/Framework/InsertIntoContextMenu/InsertIntoContextMenu (C# 6.0).md index 8027dd49..74134f66 100644 --- a/Framework/InsertIntoContextMenu/InsertIntoContextMenu (C# 6.0).md +++ b/Framework/InsertIntoContextMenu/InsertIntoContextMenu (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/InsertIntoContextMenu/ReadMe.md b/Framework/InsertIntoContextMenu/ReadMe.md index 8027dd49..74134f66 100644 --- a/Framework/InsertIntoContextMenu/ReadMe.md +++ b/Framework/InsertIntoContextMenu/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/Licensing/Licensing (C# 6.0).md b/Framework/Licensing/Licensing (C# 6.0).md index 1cd94ca7..d73052a4 100644 --- a/Framework/Licensing/Licensing (C# 6.0).md +++ b/Framework/Licensing/Licensing (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/Licensing/ReadMe.md b/Framework/Licensing/ReadMe.md index 1cd94ca7..d73052a4 100644 --- a/Framework/Licensing/ReadMe.md +++ b/Framework/Licensing/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/Localization/Localization (C#).md b/Framework/Localization/Localization (C#).md index ecdbd40a..2257aaf5 100644 --- a/Framework/Localization/Localization (C#).md +++ b/Framework/Localization/Localization (C#).md @@ -14,7 +14,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/Localization/ReadMe.md b/Framework/Localization/ReadMe.md index ecdbd40a..2257aaf5 100644 --- a/Framework/Localization/ReadMe.md +++ b/Framework/Localization/ReadMe.md @@ -14,7 +14,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/MapControl/MapControl (C# 6.0).md b/Framework/MapControl/MapControl (C# 6.0).md index 2ed24f6e..038341f8 100644 --- a/Framework/MapControl/MapControl (C# 6.0).md +++ b/Framework/MapControl/MapControl (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/MapControl/ReadMe.md b/Framework/MapControl/ReadMe.md index 2ed24f6e..038341f8 100644 --- a/Framework/MapControl/ReadMe.md +++ b/Framework/MapControl/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/OpenMapViews/OpenMapViews (C# 6.0).md b/Framework/OpenMapViews/OpenMapViews (C# 6.0).md index d5645bee..41c9e0f2 100644 --- a/Framework/OpenMapViews/OpenMapViews (C# 6.0).md +++ b/Framework/OpenMapViews/OpenMapViews (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/OpenMapViews/ReadMe.md b/Framework/OpenMapViews/ReadMe.md index d5645bee..41c9e0f2 100644 --- a/Framework/OpenMapViews/ReadMe.md +++ b/Framework/OpenMapViews/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/ProgressDialog/ProgressDialog (C#).md b/Framework/ProgressDialog/ProgressDialog (C#).md index 366200cd..405ef28e 100644 --- a/Framework/ProgressDialog/ProgressDialog (C#).md +++ b/Framework/ProgressDialog/ProgressDialog (C#).md @@ -17,7 +17,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/ProgressDialog/ReadMe.md b/Framework/ProgressDialog/ReadMe.md index 366200cd..405ef28e 100644 --- a/Framework/ProgressDialog/ReadMe.md +++ b/Framework/ProgressDialog/ReadMe.md @@ -17,7 +17,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/RemoveAddins/ReadMe.md b/Framework/RemoveAddins/ReadMe.md index 90872616..59cc15eb 100644 --- a/Framework/RemoveAddins/ReadMe.md +++ b/Framework/RemoveAddins/ReadMe.md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/RemoveAddins/RemoveAddins (C# 6.0).md b/Framework/RemoveAddins/RemoveAddins (C# 6.0).md index 90872616..59cc15eb 100644 --- a/Framework/RemoveAddins/RemoveAddins (C# 6.0).md +++ b/Framework/RemoveAddins/RemoveAddins (C# 6.0).md @@ -15,7 +15,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/ReusableUserControl/ReadMe.md b/Framework/ReusableUserControl/ReadMe.md index 56e7bbed..49478f46 100644 --- a/Framework/ReusableUserControl/ReadMe.md +++ b/Framework/ReusableUserControl/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 7.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/ReusableUserControl/ReusableUserControl (C# 7.0).md b/Framework/ReusableUserControl/ReusableUserControl (C# 7.0).md index 56e7bbed..49478f46 100644 --- a/Framework/ReusableUserControl/ReusableUserControl (C# 7.0).md +++ b/Framework/ReusableUserControl/ReusableUserControl (C# 7.0).md @@ -13,7 +13,7 @@ Language: C# 7.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/RibbonControls/ReadMe.md b/Framework/RibbonControls/ReadMe.md index 6b29bfc8..aba14ea2 100644 --- a/Framework/RibbonControls/ReadMe.md +++ b/Framework/RibbonControls/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/RibbonControls/RibbonControls (C# 6.0).md b/Framework/RibbonControls/RibbonControls (C# 6.0).md index 6b29bfc8..aba14ea2 100644 --- a/Framework/RibbonControls/RibbonControls (C# 6.0).md +++ b/Framework/RibbonControls/RibbonControls (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/Styling-with-ArcGIS-Pro/ReadMe.md b/Framework/Styling-with-ArcGIS-Pro/ReadMe.md index c496ef34..1addb384 100644 --- a/Framework/Styling-with-ArcGIS-Pro/ReadMe.md +++ b/Framework/Styling-with-ArcGIS-Pro/ReadMe.md @@ -14,7 +14,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/Styling-with-ArcGIS-Pro/Styling-with-ArcGIS-Pro (C#).md b/Framework/Styling-with-ArcGIS-Pro/Styling-with-ArcGIS-Pro (C#).md index c496ef34..1addb384 100644 --- a/Framework/Styling-with-ArcGIS-Pro/Styling-with-ArcGIS-Pro (C#).md +++ b/Framework/Styling-with-ArcGIS-Pro/Styling-with-ArcGIS-Pro (C#).md @@ -14,7 +14,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/UndoRedo/ReadMe.md b/Framework/UndoRedo/ReadMe.md index 87f0aded..0fc14810 100644 --- a/Framework/UndoRedo/ReadMe.md +++ b/Framework/UndoRedo/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/UndoRedo/UndoRedo (C#).md b/Framework/UndoRedo/UndoRedo (C#).md index 87f0aded..0fc14810 100644 --- a/Framework/UndoRedo/UndoRedo (C#).md +++ b/Framework/UndoRedo/UndoRedo (C#).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/WizardSample/ReadMe.md b/Framework/WizardSample/ReadMe.md index f9247cdf..e755df9e 100644 --- a/Framework/WizardSample/ReadMe.md +++ b/Framework/WizardSample/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/WizardSample/WizardSample (C# 6.0).md b/Framework/WizardSample/WizardSample (C# 6.0).md index f9247cdf..e755df9e 100644 --- a/Framework/WizardSample/WizardSample (C# 6.0).md +++ b/Framework/WizardSample/WizardSample (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/WorkingWithDAML/ReadMe.md b/Framework/WorkingWithDAML/ReadMe.md index e59cd228..edc60f75 100644 --- a/Framework/WorkingWithDAML/ReadMe.md +++ b/Framework/WorkingWithDAML/ReadMe.md @@ -17,7 +17,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Framework/WorkingWithDAML/WorkingWithDAML (C# 6.0).md b/Framework/WorkingWithDAML/WorkingWithDAML (C# 6.0).md index e59cd228..edc60f75 100644 --- a/Framework/WorkingWithDAML/WorkingWithDAML (C# 6.0).md +++ b/Framework/WorkingWithDAML/WorkingWithDAML (C# 6.0).md @@ -17,7 +17,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/AddDeleteFieldToFromFeatureClass/AddDeleteFieldToFromFeatureClass (C# 6.0).md b/Geodatabase/AddDeleteFieldToFromFeatureClass/AddDeleteFieldToFromFeatureClass (C# 6.0).md index 95965930..2d3beaab 100644 --- a/Geodatabase/AddDeleteFieldToFromFeatureClass/AddDeleteFieldToFromFeatureClass (C# 6.0).md +++ b/Geodatabase/AddDeleteFieldToFromFeatureClass/AddDeleteFieldToFromFeatureClass (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/AddDeleteFieldToFromFeatureClass/ReadMe.md b/Geodatabase/AddDeleteFieldToFromFeatureClass/ReadMe.md index 95965930..2d3beaab 100644 --- a/Geodatabase/AddDeleteFieldToFromFeatureClass/ReadMe.md +++ b/Geodatabase/AddDeleteFieldToFromFeatureClass/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/DeleteFeaturesBasedOnSubtype/DeleteFeaturesBasedOnSubtype (C#).md b/Geodatabase/DeleteFeaturesBasedOnSubtype/DeleteFeaturesBasedOnSubtype (C#).md index 0bd30708..5fd87443 100644 --- a/Geodatabase/DeleteFeaturesBasedOnSubtype/DeleteFeaturesBasedOnSubtype (C#).md +++ b/Geodatabase/DeleteFeaturesBasedOnSubtype/DeleteFeaturesBasedOnSubtype (C#).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/DeleteFeaturesBasedOnSubtype/ReadMe.md b/Geodatabase/DeleteFeaturesBasedOnSubtype/ReadMe.md index 0bd30708..5fd87443 100644 --- a/Geodatabase/DeleteFeaturesBasedOnSubtype/ReadMe.md +++ b/Geodatabase/DeleteFeaturesBasedOnSubtype/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/DeleteFeaturesBasedOnSubtypeVersioned/DeleteFeaturesBasedOnSubtypeVersioned (C# 6.0).md b/Geodatabase/DeleteFeaturesBasedOnSubtypeVersioned/DeleteFeaturesBasedOnSubtypeVersioned (C# 6.0).md index f472df85..68620203 100644 --- a/Geodatabase/DeleteFeaturesBasedOnSubtypeVersioned/DeleteFeaturesBasedOnSubtypeVersioned (C# 6.0).md +++ b/Geodatabase/DeleteFeaturesBasedOnSubtypeVersioned/DeleteFeaturesBasedOnSubtypeVersioned (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/DeleteFeaturesBasedOnSubtypeVersioned/ReadMe.md b/Geodatabase/DeleteFeaturesBasedOnSubtypeVersioned/ReadMe.md index f472df85..68620203 100644 --- a/Geodatabase/DeleteFeaturesBasedOnSubtypeVersioned/ReadMe.md +++ b/Geodatabase/DeleteFeaturesBasedOnSubtypeVersioned/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/DomainsUsage/DomainsComboBox.cs b/Geodatabase/DomainsUsage/DomainsComboBox.cs index b50e664b..f3ef566b 100644 --- a/Geodatabase/DomainsUsage/DomainsComboBox.cs +++ b/Geodatabase/DomainsUsage/DomainsComboBox.cs @@ -78,10 +78,12 @@ await QueuedTask.Run(() => try { var gdb = table.GetDatastore() as Geodatabase; - enterpriseDatabaseType = (gdb.GetConnector() as DatabaseConnectionProperties).DBMS; + var gdbConnector = gdb.GetConnector() as DatabaseConnectionProperties; + enterpriseDatabaseType = gdbConnector != null ? gdbConnector.DBMS : EnterpriseDatabaseType.Unknown; } - catch (InvalidOperationException e) + catch { + System.Diagnostics.Debug.WriteLine("Exception was thrown!"); } } }); diff --git a/Geodatabase/DomainsUsage/DomainsUsage (C# 6.0).md b/Geodatabase/DomainsUsage/DomainsUsage (C# 6.0).md index e0980c29..764d27a4 100644 --- a/Geodatabase/DomainsUsage/DomainsUsage (C# 6.0).md +++ b/Geodatabase/DomainsUsage/DomainsUsage (C# 6.0).md @@ -16,7 +16,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/DomainsUsage/ReadMe.md b/Geodatabase/DomainsUsage/ReadMe.md index e0980c29..764d27a4 100644 --- a/Geodatabase/DomainsUsage/ReadMe.md +++ b/Geodatabase/DomainsUsage/ReadMe.md @@ -16,7 +16,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/FavoriteQueries/FavoriteQueries (C# 6.0).md b/Geodatabase/FavoriteQueries/FavoriteQueries (C# 6.0).md index 054a3e88..2626677f 100644 --- a/Geodatabase/FavoriteQueries/FavoriteQueries (C# 6.0).md +++ b/Geodatabase/FavoriteQueries/FavoriteQueries (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/FavoriteQueries/ReadMe.md b/Geodatabase/FavoriteQueries/ReadMe.md index 054a3e88..2626677f 100644 --- a/Geodatabase/FavoriteQueries/ReadMe.md +++ b/Geodatabase/FavoriteQueries/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/FilterFeaturesBasedOnAttributesWithinAnExtent/FilterFeaturesBasedOnAttributesWithinAnExtent (C# 6.0).md b/Geodatabase/FilterFeaturesBasedOnAttributesWithinAnExtent/FilterFeaturesBasedOnAttributesWithinAnExtent (C# 6.0).md index 9571876b..77933fa0 100644 --- a/Geodatabase/FilterFeaturesBasedOnAttributesWithinAnExtent/FilterFeaturesBasedOnAttributesWithinAnExtent (C# 6.0).md +++ b/Geodatabase/FilterFeaturesBasedOnAttributesWithinAnExtent/FilterFeaturesBasedOnAttributesWithinAnExtent (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/FilterFeaturesBasedOnAttributesWithinAnExtent/ReadMe.md b/Geodatabase/FilterFeaturesBasedOnAttributesWithinAnExtent/ReadMe.md index 9571876b..77933fa0 100644 --- a/Geodatabase/FilterFeaturesBasedOnAttributesWithinAnExtent/ReadMe.md +++ b/Geodatabase/FilterFeaturesBasedOnAttributesWithinAnExtent/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/ListGeodataContent/ListGeodataContent (C# 6.0).md b/Geodatabase/ListGeodataContent/ListGeodataContent (C# 6.0).md index 385c1d57..47037827 100644 --- a/Geodatabase/ListGeodataContent/ListGeodataContent (C# 6.0).md +++ b/Geodatabase/ListGeodataContent/ListGeodataContent (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/ListGeodataContent/ReadMe.md b/Geodatabase/ListGeodataContent/ReadMe.md index 385c1d57..47037827 100644 --- a/Geodatabase/ListGeodataContent/ReadMe.md +++ b/Geodatabase/ListGeodataContent/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/QueryDefDataQuery/QueryDefDataQuery (C# 6.0).md b/Geodatabase/QueryDefDataQuery/QueryDefDataQuery (C# 6.0).md index f902b6a7..4b388237 100644 --- a/Geodatabase/QueryDefDataQuery/QueryDefDataQuery (C# 6.0).md +++ b/Geodatabase/QueryDefDataQuery/QueryDefDataQuery (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/QueryDefDataQuery/ReadMe.md b/Geodatabase/QueryDefDataQuery/ReadMe.md index f902b6a7..4b388237 100644 --- a/Geodatabase/QueryDefDataQuery/ReadMe.md +++ b/Geodatabase/QueryDefDataQuery/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/ReplaceAttachments/ReadMe.md b/Geodatabase/ReplaceAttachments/ReadMe.md index 01695c6b..b326a458 100644 --- a/Geodatabase/ReplaceAttachments/ReadMe.md +++ b/Geodatabase/ReplaceAttachments/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geodatabase/ReplaceAttachments/ReplaceAttachments (C# 6.0).md b/Geodatabase/ReplaceAttachments/ReplaceAttachments (C# 6.0).md index 01695c6b..b326a458 100644 --- a/Geodatabase/ReplaceAttachments/ReplaceAttachments (C# 6.0).md +++ b/Geodatabase/ReplaceAttachments/ReplaceAttachments (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/Config.daml b/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/Config.daml index a358b024..6c60e7d9 100644 --- a/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/Config.daml +++ b/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/Config.daml @@ -38,19 +38,19 @@ - - - - - diff --git a/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/ConstructingGeometries_CSharp (C#).md b/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/ConstructingGeometries_CSharp (C#).md index e51f0874..b9249a0e 100644 --- a/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/ConstructingGeometries_CSharp (C#).md +++ b/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/ConstructingGeometries_CSharp (C#).md @@ -16,7 +16,7 @@ Language: C# 6.0 Subject: Geometry, Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/ReadMe.md b/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/ReadMe.md index e51f0874..b9249a0e 100644 --- a/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/ReadMe.md +++ b/Geometry/Constructing-Geometries/ConstructingGeometries_CSharp/ReadMe.md @@ -16,7 +16,7 @@ Language: C# 6.0 Subject: Geometry, Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geometry/Constructing-Geometries/ConstructingGeometries_VB/Config.daml b/Geometry/Constructing-Geometries/ConstructingGeometries_VB/Config.daml index 098499d9..6bccbec0 100644 --- a/Geometry/Constructing-Geometries/ConstructingGeometries_VB/Config.daml +++ b/Geometry/Constructing-Geometries/ConstructingGeometries_VB/Config.daml @@ -37,19 +37,19 @@ - - - - - diff --git a/Geometry/Constructing-Geometries/ConstructingGeometries_VB/ConstructingGeometries_VB (VB 6.0).md b/Geometry/Constructing-Geometries/ConstructingGeometries_VB/ConstructingGeometries_VB (VB 6.0).md index cc80b444..8e2088d2 100644 --- a/Geometry/Constructing-Geometries/ConstructingGeometries_VB/ConstructingGeometries_VB (VB 6.0).md +++ b/Geometry/Constructing-Geometries/ConstructingGeometries_VB/ConstructingGeometries_VB (VB 6.0).md @@ -16,7 +16,7 @@ Language: VB 6.0 Subject: Geometry, Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geometry/Constructing-Geometries/ConstructingGeometries_VB/Readme.md b/Geometry/Constructing-Geometries/ConstructingGeometries_VB/Readme.md index cc80b444..8e2088d2 100644 --- a/Geometry/Constructing-Geometries/ConstructingGeometries_VB/Readme.md +++ b/Geometry/Constructing-Geometries/ConstructingGeometries_VB/Readme.md @@ -16,7 +16,7 @@ Language: VB 6.0 Subject: Geometry, Geodatabase Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geometry/CoordinateSystemDialog/CoordinateSystemPicker (C# 6.0).md b/Geometry/CoordinateSystemDialog/CoordinateSystemPicker (C# 6.0).md index f1e36452..65796e52 100644 --- a/Geometry/CoordinateSystemDialog/CoordinateSystemPicker (C# 6.0).md +++ b/Geometry/CoordinateSystemDialog/CoordinateSystemPicker (C# 6.0).md @@ -14,7 +14,7 @@ Language: C# 6.0 Subject: Geometry Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geometry/CoordinateSystemDialog/ReadMe.md b/Geometry/CoordinateSystemDialog/ReadMe.md index f1e36452..65796e52 100644 --- a/Geometry/CoordinateSystemDialog/ReadMe.md +++ b/Geometry/CoordinateSystemDialog/ReadMe.md @@ -14,7 +14,7 @@ Language: C# 6.0 Subject: Geometry Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geometry/GeometrySamples/GeometrySamples (C# 6.0).md b/Geometry/GeometrySamples/GeometrySamples (C# 6.0).md index 8955e581..88cab62e 100644 --- a/Geometry/GeometrySamples/GeometrySamples (C# 6.0).md +++ b/Geometry/GeometrySamples/GeometrySamples (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geometry Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geometry/GeometrySamples/ReadMe.md b/Geometry/GeometrySamples/ReadMe.md index 8955e581..88cab62e 100644 --- a/Geometry/GeometrySamples/ReadMe.md +++ b/Geometry/GeometrySamples/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geometry Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geoprocessing/CallScriptFromNet/CallScriptFromNet (c#).md b/Geoprocessing/CallScriptFromNet/CallScriptFromNet (c#).md index 27641ecd..605954bd 100644 --- a/Geoprocessing/CallScriptFromNet/CallScriptFromNet (c#).md +++ b/Geoprocessing/CallScriptFromNet/CallScriptFromNet (c#).md @@ -14,7 +14,7 @@ Language: C# 6.0 Subject: Geoprocessing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geoprocessing/CallScriptFromNet/ReadMe.md b/Geoprocessing/CallScriptFromNet/ReadMe.md index 27641ecd..605954bd 100644 --- a/Geoprocessing/CallScriptFromNet/ReadMe.md +++ b/Geoprocessing/CallScriptFromNet/ReadMe.md @@ -14,7 +14,7 @@ Language: C# 6.0 Subject: Geoprocessing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geoprocessing/DriveTimeGP/DriveTimeGP (C# 6.0).md b/Geoprocessing/DriveTimeGP/DriveTimeGP (C# 6.0).md index b9ec703f..e49b7288 100644 --- a/Geoprocessing/DriveTimeGP/DriveTimeGP (C# 6.0).md +++ b/Geoprocessing/DriveTimeGP/DriveTimeGP (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geoprocessing/DriveTimeGP/ReadMe.md b/Geoprocessing/DriveTimeGP/ReadMe.md index b9ec703f..e49b7288 100644 --- a/Geoprocessing/DriveTimeGP/ReadMe.md +++ b/Geoprocessing/DriveTimeGP/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Framework Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geoprocessing/Geocode/Geocode (C# 6.0).md b/Geoprocessing/Geocode/Geocode (C# 6.0).md index ab5be6ad..654c6098 100644 --- a/Geoprocessing/Geocode/Geocode (C# 6.0).md +++ b/Geoprocessing/Geocode/Geocode (C# 6.0).md @@ -14,7 +14,7 @@ Language: C# 6.0 Subject: Geoprocessing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geoprocessing/Geocode/ReadMe.md b/Geoprocessing/Geocode/ReadMe.md index ab5be6ad..654c6098 100644 --- a/Geoprocessing/Geocode/ReadMe.md +++ b/Geoprocessing/Geocode/ReadMe.md @@ -14,7 +14,7 @@ Language: C# 6.0 Subject: Geoprocessing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geoprocessing/GeoprocessingExecuteAsync/GeoprocessingExecuteAsync (C#).md b/Geoprocessing/GeoprocessingExecuteAsync/GeoprocessingExecuteAsync (C#).md index 6baa3d19..6e009a92 100644 --- a/Geoprocessing/GeoprocessingExecuteAsync/GeoprocessingExecuteAsync (C#).md +++ b/Geoprocessing/GeoprocessingExecuteAsync/GeoprocessingExecuteAsync (C#).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geoprocessing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Geoprocessing/GeoprocessingExecuteAsync/ReadMe.md b/Geoprocessing/GeoprocessingExecuteAsync/ReadMe.md index 6baa3d19..6e009a92 100644 --- a/Geoprocessing/GeoprocessingExecuteAsync/ReadMe.md +++ b/Geoprocessing/GeoprocessingExecuteAsync/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Geoprocessing Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Layouts/TextElementAddin/ReadMe.md b/Layouts/TextElementAddin/ReadMe.md index fd86c1c4..5444ec94 100644 --- a/Layouts/TextElementAddin/ReadMe.md +++ b/Layouts/TextElementAddin/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Layouts Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Layouts/TextElementAddin/TextElementAddin (C# 6.0).md b/Layouts/TextElementAddin/TextElementAddin (C# 6.0).md index fd86c1c4..5444ec94 100644 --- a/Layouts/TextElementAddin/TextElementAddin (C# 6.0).md +++ b/Layouts/TextElementAddin/TextElementAddin (C# 6.0).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Layouts Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Map-Authoring/AddRasterLayer/AddRasterLayer (C#).md b/Map-Authoring/AddRasterLayer/AddRasterLayer (C#).md index 4ae4f1ed..c4aebf99 100644 --- a/Map-Authoring/AddRasterLayer/AddRasterLayer (C#).md +++ b/Map-Authoring/AddRasterLayer/AddRasterLayer (C#).md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Map Authoring Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Map-Authoring/AddRasterLayer/ReadMe.md b/Map-Authoring/AddRasterLayer/ReadMe.md index 4ae4f1ed..c4aebf99 100644 --- a/Map-Authoring/AddRasterLayer/ReadMe.md +++ b/Map-Authoring/AddRasterLayer/ReadMe.md @@ -13,7 +13,7 @@ Language: C# 6.0 Subject: Map Authoring Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Map-Authoring/CIMExamples/CIMExamples (C# 6.0).md b/Map-Authoring/CIMExamples/CIMExamples (C# 6.0).md index 239cad45..d3bd4608 100644 --- a/Map-Authoring/CIMExamples/CIMExamples (C# 6.0).md +++ b/Map-Authoring/CIMExamples/CIMExamples (C# 6.0).md @@ -19,7 +19,7 @@ Language: C# 6.0 Subject: Map Authoring Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Map-Authoring/CIMExamples/ChangeLayerDataSource.cs b/Map-Authoring/CIMExamples/ChangeLayerDataSource.cs index cba00d58..d71c10a7 100644 --- a/Map-Authoring/CIMExamples/ChangeLayerDataSource.cs +++ b/Map-Authoring/CIMExamples/ChangeLayerDataSource.cs @@ -70,16 +70,23 @@ private Task ChangeUSHighwaysLayerDataConnectionAsync(FeatureLayer featureLayer, string connection = System.IO.Path.GetDirectoryName(catalogPath); string suffix = System.IO.Path.GetExtension(connection).ToLower(); + var workspaceConnectionString = string.Empty; WorkspaceFactory wf = WorkspaceFactory.FileGDB; if (suffix == ".sde") { wf = WorkspaceFactory.SDE; + var dbGdbConnection = new DatabaseConnectionFile(new Uri(connection, UriKind.Absolute)); + workspaceConnectionString = new Geodatabase(dbGdbConnection).GetConnectionString(); + } + else + { + var dbGdbConnectionFile = new FileGeodatabaseConnectionPath (new Uri(connection, UriKind.Absolute)); + workspaceConnectionString = new Geodatabase(dbGdbConnectionFile).GetConnectionString(); } string dataset = System.IO.Path.GetFileName(catalogPath); - var dbGdbConnection = new DatabaseConnectionFile(new Uri(connection, UriKind.Absolute)); // provide a replace data connection method CIMStandardDataConnection updatedDataConnection = new CIMStandardDataConnection() { - WorkspaceConnectionString = new Geodatabase(dbGdbConnection).GetConnectionString(), + WorkspaceConnectionString = workspaceConnectionString, WorkspaceFactory = wf, Dataset = dataset, DatasetType = esriDatasetType.esriDTFeatureClass diff --git a/Map-Authoring/CIMExamples/ReadMe.md b/Map-Authoring/CIMExamples/ReadMe.md index 239cad45..d3bd4608 100644 --- a/Map-Authoring/CIMExamples/ReadMe.md +++ b/Map-Authoring/CIMExamples/ReadMe.md @@ -19,7 +19,7 @@ Language: C# 6.0 Subject: Map Authoring Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 diff --git a/Map-Authoring/ChangeColorizerForRasterLayer/ChangeColorizerForRasterLayer (C# 6.0).md b/Map-Authoring/ChangeColorizerForRasterLayer/ChangeColorizerForRasterLayer (C# 6.0).md index 9aa8637f..bd825e9a 100644 --- a/Map-Authoring/ChangeColorizerForRasterLayer/ChangeColorizerForRasterLayer (C# 6.0).md +++ b/Map-Authoring/ChangeColorizerForRasterLayer/ChangeColorizerForRasterLayer (C# 6.0).md @@ -18,7 +18,7 @@ Language: C# 6.0 Subject: Map Authoring Contributor: ArcGIS Pro SDK Team Organization: Esri, http://www.esri.com -Date: 6/23/2017 +Date: 6/28/2017 ArcGIS Pro: 2.0 Visual Studio: 2015, 2017 .NET Target Framework: 4.6.1 @@ -53,12 +53,14 @@ Visual Studio: 2015, 2017 5. Click on the ADD-IN tab. 6. Click the Add Raster Layer button to add a new image service layer to the map. (Make sure the layer is selected on the Contents pane). +![UI](Screenshots/Screen1.png) 7. Click the drop down arrow on the right of the "Apply Colorizers" combo box to show the list of applicable colorizers. +![UI](Screenshots/Screen2.png) 8. Select different colorizers from the list to apply to the layer. You will see the layer is rendered with different customized colorizers that you selected. 9. You can try the "Apply colorizers" functionality on your own layers. (Be sure the selected layer is either raster layer, image service layer, or mosaic layer). -![UI](Screenshots/Screen.png) +![UI](Screenshots/Screen3.png) diff --git a/Map-Authoring/ChangeColorizerForRasterLayer/ChangeColorizerForRasterLayer.csproj b/Map-Authoring/ChangeColorizerForRasterLayer/ChangeColorizerForRasterLayer.csproj index fb95121d..e3118f0f 100644 --- a/Map-Authoring/ChangeColorizerForRasterLayer/ChangeColorizerForRasterLayer.csproj +++ b/Map-Authoring/ChangeColorizerForRasterLayer/ChangeColorizerForRasterLayer.csproj @@ -114,11 +114,14 @@ + - + - + + + - + -