Example #1
0
 public NewWarehouseEntryDialog(WarehouseDetail owner)
 {
     this.owner   = owner;
     Items        = new ObservableCollection <Item>();
     using var db = MyDbContext.Instance;
     foreach (var i in db.Items)
     {
         if (i.Available)
         {
             Items.Add(i);
         }
     }
     InitializeComponent();
     MessageLabel.Content = "仓库" + owner.VM.Id;
 }
Example #2
0
 public WarehousePrintDialog(WarehouseDetail owner)
 {
     this.owner = owner;
     InitializeComponent();
     Preview(false);
 }