更新JSON格式化
增加剪切板helper
This commit is contained in:
1 parent
d3488c98f5
commit
a217a74868
7 files changed
+342
-156
No files matched your search
@@ -2,6 +2,7 @@ using _29WxOrderWpf.ToolCtrls;
|
||||
using OrderSupportTicket.Models;
|
||||
using OrderSupportTicket.Services;
|
||||
using OrderSupportTicket.ViewModels;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
@@ -154,16 +155,15 @@ public partial class OrderSupportTicketView : UserControl
|
||||
if (window == null)
|
||||
return;
|
||||
|
||||
try
|
||||
{
|
||||
Clipboard.SetText(orderId);
|
||||
ToastHelper.Show(window, "订单号已复制");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ToastHelper.Show(window, "复制失败:" + ex.Message, ToastType.Error);
|
||||
}
|
||||
}
|
||||
if (ClipboardHelper.TrySetText(orderId))
|
||||
{
|
||||
ToastHelper.Show(window, "订单号已复制");
|
||||
}
|
||||
else
|
||||
{
|
||||
ToastHelper.Show(window, "复制失败");
|
||||
}
|
||||
}
|
||||
|
||||
private async void OnLoaded(object sender, System.Windows.RoutedEventArgs e)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user