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
{
///
/// 订单集合
///
public ObservableCollection orders { get; set; } = Globle.GlobleData.orders;
public RelayCommand CreateOrderCommand { get; set; }
public OrderManagerViewModel()
{
CreateOrderCommand = new RelayCommand(() =>
{
CreateOrder createOrder = new CreateOrder();
createOrder.ShowDialog();
});
}
}
}