Exemplo n.º 1
0
        void ExecuteEditSupplierAccount(SupplierAccount parameter)
        {
            AddSupplierAccountWindow addSupplierAccountWindow = new AddSupplierAccountWindow(parameter);

            // 如果添加成功就更新数据
            if (addSupplierAccountWindow.ShowDialog() == true)
            {
                ExecuteUpdateSupplierAccounts(CurrentSupplier);
            }
        }
Exemplo n.º 2
0
        void ExecuteShowAddSupplierAccountWindow()
        {
            AddSupplierAccountWindow addSupplierAccountWindow = new AddSupplierAccountWindow(new SupplierAccount()
            {
                供应商ID = CurrentSupplier.供应商ID, 供应商名称 = CurrentSupplier.供应商名称
            });

            if (addSupplierAccountWindow.ShowDialog() == true)
            {
                ExecuteUpdateSupplierAccounts(CurrentSupplier);
            }
        }