Files
29WxOrder/OrderSupportTicket/Views/TicketConversationView.xaml.cs
T
2026-10-20 17:03:23 +08:00

19 lines
690 B
C#

using _29WxOrderWpf.ToolCtrls;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Work._29Tools.Forms.ToolForms;
namespace OrderSupportTicket.Views;
public partial class TicketConversationView : UserControl
{
public TicketConversationView() => InitializeComponent();
private void CopyOrderId_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
if (sender is not FrameworkElement element || element.Tag is not string orderId || string.IsNullOrWhiteSpace(orderId)) return;
var window = Window.GetWindow(this);
if (window != null) ToastHelper.Show(window, ClipboardHelper.TrySetText(orderId) ? "订单号已复制" : "复制失败");
}
}