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