终端一体化运控平台
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.
 
 
 

35 lines
894 B

  1. using BPASmart.Model;
  2. using BPASmart.RecipeManagement.View;
  3. using Microsoft.Toolkit.Mvvm.ComponentModel;
  4. using Microsoft.Toolkit.Mvvm.Input;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Collections.ObjectModel;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace BPASmart.RecipeManagement.ViewModel
  12. {
  13. public class OrderManagerViewModel : ObservableObject
  14. {
  15. /// <summary>
  16. /// 订单集合
  17. /// </summary>
  18. public ObservableCollection<Order> orders { get; set; } = Globle.GlobleData.orders;
  19. public RelayCommand CreateOrderCommand { get; set; }
  20. public OrderManagerViewModel()
  21. {
  22. CreateOrderCommand = new RelayCommand(() =>
  23. {
  24. CreateOrder createOrder = new CreateOrder();
  25. createOrder.ShowDialog();
  26. });
  27. }
  28. }
  29. }