|
@@ -118,11 +118,11 @@ namespace XdCxRhDW.App.UserControl
|
|
|
}
|
|
|
mapControl1.AddRectMenu<PosRes>("删除定位点", SvgHelper.CreateClose(), items =>
|
|
|
{
|
|
|
- DeletePosRes(items);
|
|
|
+ DeletePosRes(items.ToList());
|
|
|
});
|
|
|
mapControl1.AddRectMenu<PosRes>("使用镜像点", SvgHelper.LoadFromFile("Image\\Pos.svg"), items =>
|
|
|
{
|
|
|
- UseMirr(items);
|
|
|
+ UseMirr(items.ToList());
|
|
|
});
|
|
|
mapControl1.AddPosMenu<PosRes>("绘制时差线", SvgHelper.LoadFromFile("Image\\DtoLine.svg"), item =>
|
|
|
{
|
|
@@ -256,7 +256,7 @@ namespace XdCxRhDW.App.UserControl
|
|
|
|
|
|
WaitHelper.CloseForm();
|
|
|
}
|
|
|
- private async void UseMirr(IEnumerable<PosRes> items)
|
|
|
+ private async void UseMirr(List<PosRes> items)
|
|
|
{
|
|
|
if (items == null || items.Count() == 0)
|
|
|
{
|
|
@@ -284,6 +284,7 @@ namespace XdCxRhDW.App.UserControl
|
|
|
}
|
|
|
UseMirror(items);
|
|
|
mapControl1.UpdatePosItem(items);
|
|
|
+ gridView2.RefreshData();
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -292,7 +293,7 @@ namespace XdCxRhDW.App.UserControl
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- private async void DeletePosRes(IEnumerable<PosRes> items)
|
|
|
+ private async void DeletePosRes(List<PosRes> items)
|
|
|
{
|
|
|
if (items == null || items.Count() == 0)
|
|
|
{
|