private void PerformCreateGood() { GoodCard goodCard = new GoodCard(); var viewModel = (GoodCardVM)goodCard.DataContext; var nodeIndexes = GetNodeIndexes(CurrentNode); viewModel.PutData(warehouseManager, new Good(), nodeIndexes, -1); goodCard.Show(); }
private void PerformUpdateGood() { GoodCard goodCard = new GoodCard(); var viewModel = (GoodCardVM)goodCard.DataContext; var nodeIndexes = GetNodeIndexes(CurrentNode); var goodIndex = GetGoodIndex(CurrentGood, CurrentNode); viewModel.PutData(warehouseManager, CurrentGood, nodeIndexes, goodIndex); goodCard.Show(); }