public void ReadConfig() { NotesConfig config = new NotesConfig(); serverName = config.NotesServer; nsfFile = config.NotesFile; pwd = config.NotesPwd; }
public NotesConfigVm() { this.SaveConfigCmd = new DelegateCommand(SaveConfig); NotesConfig config = new NotesConfig(); this.ServerName = config.NotesServer; this.NsfName = config.NotesFile; this.Pwd = config.NotesPwd; }
public void SaveConfig() { if (this.severName == null || this.severName.Trim().Equals(string.Empty) || this.nsfName == null || this.nsfName.Trim().Equals(string.Empty) || this.pwd == null || this.pwd.Trim().Equals(string.Empty)) { this.ConfigHint = "服务器名、NOTES配置文件名、密码不能为空!"; } else { NotesConfig config = new NotesConfig(); config.NotesServer = this.severName; config.NotesFile = this.nsfName; config.NotesPwd = this.pwd; this.ConfigHint = "保存成功!"; } }