/// <summary> /// 删除命令 /// </summary> /// <returns></returns> public override void ExecuteDelete() { if (SelectedAccount != null) { if (SelectedAccount.AccountName == "00") { System.Windows.MessageBox.Show("超级管理员账户不能删除"); return; } UserInfoBLL bll = new UserInfoBLL(); if (bll.DeleteAccount(SelectedAccount)) { AccountList.Remove(SelectedAccount); SelectedAccount = null; } } }