/** * 向xml中添加账户信息 */ private void AddAccount(string account, string password, string popHost, string smtpHost) { AccountInfo accountInfo = new AccountInfo(account, password, popHost, smtpHost); XMLOperation.AddAccountNode(accountInfo); AccountInfos = XMLOperation.loadAccouts(); }
public WelcomeViewModel(ContentControl content) { this.openLoginCommand = new DelegateCommand(); this.openLoginCommand.ExecuteAction = new Action <object>(this.openLogin); this.enterMailBoxCommand = new DelegateCommand(); this.enterMailBoxCommand.ExecuteAction = new Action <object>(this.enterMailBox); //读取账户 AccountInfos = XMLOperation.loadAccouts(); isAble = false; accountSelectedIndex = -1; contentControl = content; }