Esempio n. 1
0
        void ExecuteEditGood(Good parameter)
        {
            AddGoodWindow addGoodWindow = new AddGoodWindow(parameter);

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

            if (addGoodWindow.ShowDialog() == true)
            {
                ExecuteUpdateGoods();
            }
        }