internal void AddList() { _ = new StockEditViewModel(this, StockListView, null); UpdateStockList(); StockListView.DataContext = null; StockListView.DataContext = Medicine; }
public StockEditWindow(StockEditViewModel stockEditViewModel) { InitializeComponent(); StockEditViewModel = stockEditViewModel; }
internal void StockEdit(Stock stock) { _ = new StockEditViewModel(this, StockListView, stock); StockListView.DataContext = null; StockListView.DataContext = Medicine; }