步步为盈
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.4 KiB

using BBWY.Client.Models;
using BBWY.Client.ViewModels.PackTask;
using BBWY.Controls;
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using WebSocketSharp;
namespace BBWY.Client.Views.PackTask
{
/// <summary>
/// UpdatePurchaseTaskWindow.xaml 的交互逻辑
/// </summary>
public partial class UpdatePurchaseTaskWindow : BWindow
{
public UpdatePurchaseTaskWindow(PackTaskModel obj, Action ReflashWindow = null)
{
InitializeComponent();
var updatePackTask = (this.DataContext as UpdatePurchaseTaskViewModel);
var show = updatePackTask.SearchSku(obj);
if (!show) { this.Close(); IsClosed = true; }
if (ReflashWindow != null)
updatePackTask.ReflashWindow = ReflashWindow;
}
public bool IsClosed { get; set; } = false;
private void BButton_Click(object sender, RoutedEventArgs e)
{
try
{
if (btn_showMarkMessage != null && !btn_showMarkMessage.Text.IsNullOrEmpty())
{
btn_showMarkMessage.ScrollToEnd();
}
}
catch
{
}
}
}
}