-
Notifications
You must be signed in to change notification settings - Fork 0
/
Module1.cs
53 lines (48 loc) · 2.15 KB
/
Module1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//Copyright 2017 Esri
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using ArcGIS.Desktop.Framework;
using ArcGIS.Desktop.Framework.Contracts;
namespace Esri.APL.FieldStatsQueryHelper {
/// <summary>
/// This sample shows how to:
/// * Create a Dockpane using DAML
/// * Use the MVVM Pattern with ArcGIS Pro
/// * Change the Dockpane title
/// * Add a ListBox to the Dockpane showing the list of maps
/// * Add a ListBox to the Dockpane showing bookmarks of a selected map
/// * Use the Map selection changed event to populate a list of bookmarks with bookmarks for the selected map.
/// * Use Bookmark list selection change event to zoom map view to bookmark
/// </summary>
/// <remarks>
/// 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 a project with a map view that has bookmarks and click on the 'Dockpane Lab' tab.
/// 1. Select a Map view from the list of Map views.
/// 1. The bookmarks for the selected map should appear in the list of bookmarks.
/// 1. Select a bookmark to zoom to a given bookmark.
/// ![UI](Screenshots/Screen.png)
/// </remarks>
internal class Module1 : Module
{
private static Module1 _this = null;
/// <summary>
/// Retrieve the singleton instance to this module here
/// </summary>
public static Module1 Current
{
get
{
return _this ?? (_this = (Module1)FrameworkApplication.FindModule("FieldStatsHelper_Module"));
}
}
}
}