19 lines
690 B
C#
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) ? "订单号已复制" : "复制失败");
|
|
}
|
|
}
|