摘要:protected override async void OnClick() { using (var progress = new ProgressDialog("Showing Progress", "Canceled", 100, false)) { var status = new Can
阅读全文
摘要:rotected override void OnClick() { if (subscribed) ProjectWindowSelectedItemsChangedEvent.Unsubscribe(OnProjectWindowSelectedItem); else ProjectWindow
阅读全文
摘要:/* Copyright 2019 Esri Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License
阅读全文
摘要:protected override Task HandleMouseDownAsync(MapViewMouseButtonEventArgs e) { //Get the instance of the ViewModel var vm = OverlayEmbeddableControl as
阅读全文
摘要:// Copyright 2019 Esri // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the L
阅读全文
摘要:protected override async void OnClick() { var rasterLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<ImageServiceLayer>().FirstOrDefault()
阅读全文
摘要:var valueArray = await QueuedTask.Run(() => { var g = new List<object>() { geometry, }; // Creates a 8000-meter buffer around the geometry object // n
阅读全文
摘要:protected override void OnClick() { ExecuteProCommand("esri_core_showProjectView"); ExecuteProCommand("esri_core_showProjectDockPane"); } /// <summary
阅读全文
摘要:protected override void OnClick() { var commandId = FrameworkApplication.GetPlugInWrapper(@"esri_core_exitApplicationButton") as ICommand; if (command
阅读全文
摘要:var us_states = MapView.Active.Map.GetLayersAsFlattenedList() .OfType<FeatureLayer>().First(lyr => lyr.Name == "US States"); QueuedTask.Run(() => { us
阅读全文
摘要:来自:https://www.likecs.com/show-204002511.html 第一步:设置MapControl的AllowDrop属性为True第二步:设置MapControl的OldDropEnabled属性为True第三步:选择MapControl的OnOleDrop事件第四步:加
阅读全文
摘要:原文:http://www.samuelbosch.com/2009/06/drag-drop-from-arccatalog.html 帮助类: using System.Collections.Generic; using System.Windows.Forms; using ESRI.Arc
阅读全文
摘要:先看一下效果,在这里我以TextBox控件为例,其它类型的操作也类似于这样 视频讲解地址 https://www.bilibili.com/video/BV1AV4y1M7mR 步骤如下(控件名为textBox1) 1、注册两个事件,代码如下 1 2 3 4 5 6 7 8 9 10 11 12 1
阅读全文
摘要:internal class ActivateMapFrameBtn: Button { protected override void OnClick() { //1. must be on the GUI - dont switch to QueuedTask //2. Layout view
阅读全文
摘要:public static bool Exists(IGeoProcessor gp, string modalname) { IGpEnumList pList = gp.ListTools(""); string name = pList.Next(); while (name != "") {
阅读全文