Skip to content

Commit

Permalink
ArcGIS Pro 2.0 SDK for .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
arcgisprosdk committed Jun 28, 2017
1 parent 38b07b8 commit 2f624a8
Show file tree
Hide file tree
Showing 238 changed files with 547 additions and 443 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Content/ArcGISOnlineConnect/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Content
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Content/CustomCatalogContext/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Content
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Content/ExcelDropHandler/ExcelDropHandler (C# 6.0).md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Content
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Content/ExcelDropHandler/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Content
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Content
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Content/FolderConnectionManager/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Content
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Content/WorkwithProjects/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Language: C# 6.0
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Content/WorkwithProjects/WorkwithProjects (C#).md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Language: C# 6.0
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion CoreHost/CoreHostGDB/CoreHostGDB (C# 6.0).md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Console
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion CoreHost/CoreHostGDB/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Console
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion CoreHost/CoreHostSample/CoreHostSample (C# 6.0).md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Console
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion CoreHost/CoreHostSample/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Console
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion DataReviewer/ReviewerAddin/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Language: C# 6.0
Subject: DataReviewer
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion DataReviewer/ReviewerAddin/ReviewerAddin (C# 6.0).md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Language: C# 6.0
Subject: DataReviewer
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Editing/ConstructionTool/ConstructionTool (C# 6.0).md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Language: C# 6.0
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Editing/ConstructionTool/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Language: C# 6.0
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Language: C# 6.0
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Editing/ConstructionToolWithOptions/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Language: C# 6.0
Subject: Framework
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
81 changes: 43 additions & 38 deletions Editing/CrowdPlannerTool/CPDockpaneViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ limitations under the License.
namespace CrowdPlannerTool
{

#region Showbutton
#region Showbutton
/// <summary>
/// Button implementation to show the DockPane.
/// </summary>
Expand All @@ -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";
Expand Down Expand Up @@ -436,63 +436,68 @@ 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();

// 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();

Expand Down
2 changes: 1 addition & 1 deletion Editing/CrowdPlannerTool/CrowdPlannerTool (C# 6.0).md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
30 changes: 30 additions & 0 deletions Editing/CrowdPlannerTool/CrowdPlannerTool.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Editing/CrowdPlannerTool/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Editing/DivideLines/DivideLines (C# 6.0).md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Language: C# 6.0
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Editing/DivideLines/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Language: C# 6.0
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Editing/ExtendTool/ExtendTool (C# 6.0).md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
2 changes: 1 addition & 1 deletion Editing/ExtendTool/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Language: C# 6.0
Subject: Editing
Contributor: ArcGIS Pro SDK Team <[email protected]>
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
Expand Down
Loading

0 comments on commit 2f624a8

Please sign in to comment.