- 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();
- });
- }
- }
- }
|