|
|
@ -11,32 +11,24 @@ using System.Windows.Threading; |
|
|
namespace formula_manage.ViewModel |
|
|
namespace formula_manage.ViewModel |
|
|
{ |
|
|
{ |
|
|
///<Summary>
|
|
|
///<Summary>
|
|
|
/// StuffViewModel
|
|
|
/// RRODUCTiewModel
|
|
|
///</Summary>
|
|
|
///</Summary>
|
|
|
public class StuffViewModel : ViewModelBase |
|
|
public class RRODUCTiewModel : ViewModelBase |
|
|
{ |
|
|
{ |
|
|
private List<Product> products = new List<Product>(); |
|
|
// private List<RRODUCT> products = new List<RRODUCT>();
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 所有原料
|
|
|
///
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public List<Product> Product |
|
|
/* public List<RRODUCT> RRODUCT |
|
|
{ |
|
|
{ |
|
|
get |
|
|
|
|
|
{ |
|
|
}*/ |
|
|
return products; |
|
|
|
|
|
} |
|
|
|
|
|
set |
|
|
|
|
|
{ |
|
|
|
|
|
products = value; |
|
|
|
|
|
RaisePropertyChanged(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// StuffViewModeldl
|
|
|
/// StuffViewModeldl
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public StuffViewModel() |
|
|
public RRODUCTiewModel() |
|
|
{ |
|
|
{ |
|
|
//products = new ProductProvider().Select();
|
|
|
//products = new ProductProvider().Select();
|
|
|
DispatcherTimer timer = new DispatcherTimer//初始化循环,每0.5秒调用一次Tick_Event
|
|
|
DispatcherTimer timer = new DispatcherTimer//初始化循环,每0.5秒调用一次Tick_Event
|