修复复制 提示错误bug
This commit is contained in:
1 parent
99c1fe83ef
commit
ec4d8073b3
1 file changed
+12
-2
@@ -1,4 +1,5 @@
|
|||||||
using _29WxOrderWpf.Ctrls.Statistics.Models;
|
using _29WxOrderWpf.BaseWindows;
|
||||||
|
using _29WxOrderWpf.Ctrls.Statistics.Models;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -36,7 +37,16 @@ public partial class ShowOrderDialogView : UserControl
|
|||||||
&& element.DataContext is ShopRevenueStatisticsRow row
|
&& element.DataContext is ShopRevenueStatisticsRow row
|
||||||
&& !string.IsNullOrEmpty(row.OrderId))
|
&& !string.IsNullOrEmpty(row.OrderId))
|
||||||
{
|
{
|
||||||
Clipboard.SetText(row.OrderId);
|
Window window = Window.GetWindow(this);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Clipboard.SetDataObject(row.OrderId);
|
||||||
|
BaseMsgWindow.ShowAnimateMessage("复制成功");
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
BaseMsgWindow.ShowError("复制失败 " + ex.Message,window: window);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user