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; }
public WarehousePrintDialog(WarehouseDetail owner) { this.owner = owner; InitializeComponent(); Preview(false); }