自动拍单功能
This commit is contained in:
1 parent
5906a1623f
commit
e755da09a6
6 files changed
+141
-80
No files matched your search
@@ -59,6 +59,7 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
/// </summary>
|
||||
public partial class OrderListCtrl : UserControl, INotifyPropertyChanged
|
||||
{
|
||||
public static bool IsAutoBuy { get; set; } = false;
|
||||
public CheckBox chkSelectAll = null;
|
||||
OrderFilterConfig _orderFilterConfig;
|
||||
public OrderFilterConfig orderFilterConfig
|
||||
@@ -2716,11 +2717,15 @@ namespace _29WxOrderWpf.Ctrls.OrderCtrls
|
||||
return;
|
||||
}
|
||||
|
||||
IsAutoBuy = true;
|
||||
foreach (var order in buyOrders)
|
||||
{
|
||||
var orderItem = order.orderItems.FirstOrDefault();
|
||||
await OrderListRowItemCtrl.BuyOrder(orderItem, true);
|
||||
if (IsAutoBuy == false)
|
||||
break;
|
||||
}
|
||||
IsAutoBuy = false;
|
||||
}
|
||||
|
||||
private void btnAutoBuyIntroduction_Click(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in new issue
Block a user