void ExecuteEditGood(Good parameter) { AddGoodWindow addGoodWindow = new AddGoodWindow(parameter); if (addGoodWindow.ShowDialog() == true) { ExecuteUpdateGoods(); } }
void ExecuteShowAddGoodWindow() { AddGoodWindow addGoodWindow = new AddGoodWindow(new Good() { 是否高毒 = "普通商品", 种类大 = "农药" }); if (addGoodWindow.ShowDialog() == true) { ExecuteUpdateGoods(); } }