|
12345678910111213141516171819202122232425262728293031323334 |
- using BPASmart.Model;
- using BPASmart.RecipeManagement.View;
- using Microsoft.Toolkit.Mvvm.ComponentModel;
- using Microsoft.Toolkit.Mvvm.Input;
- using System;
- using System.Collections.Generic;
- using System.Collections.ObjectModel;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace BPASmart.RecipeManagement.ViewModel
- {
- public class OrderManagerViewModel : ObservableObject
- {
- /// <summary>
- /// 订单集合
- /// </summary>
- public ObservableCollection<Order> orders { get; set; } = Globle.GlobleData.orders;
-
- public RelayCommand CreateOrderCommand { get; set; }
-
- public OrderManagerViewModel()
- {
-
-
- CreateOrderCommand = new RelayCommand(() =>
- {
- CreateOrder createOrder = new CreateOrder();
- createOrder.ShowDialog();
- });
- }
- }
- }
|