void ExecuteEditClientAccount(ClientAccount parameter) { //parameter.客户ID = CurrentClient.客户ID; //parameter.姓名 = CurrentClient.姓名; AddClientAccountWindow addClientAccountWindow = new AddClientAccountWindow(parameter); // 如果添加成功就更新数据 if (addClientAccountWindow.ShowDialog() == true) { ExecuteUpdateClientAccounts(CurrentClient); } }
void ExecuteShowAddClientAccountWindow() { AddClientAccountWindow addClientAccountWindow = new AddClientAccountWindow(new ClientAccount() { 客户ID = CurrentClient.客户ID, 姓名 = CurrentClient.姓名 }); if (addClientAccountWindow.ShowDialog() == true) { ExecuteUpdateClientAccounts(CurrentClient); } }