public void GroupChange() { this.EmailOptions = new ObservableCollection <EmailGroupOption>(); foreach (var item in this.SelectGroupItem.ListEmail) { EmailGroupOption op = new EmailGroupOption(item); op.IsSelected = true; this.EmailOptions.Add(op); } this.NotesOptions = new ObservableCollection <NotesGroupOption>(); foreach (var item in this.SelectGroupItem.ListNotes) { NotesGroupOption op = new NotesGroupOption(item); op.IsSelected = true; this.NotesOptions.Add(op); } this.FtpOptions = new ObservableCollection <FtpGroupOption>(); foreach (var item in this.SelectGroupItem.ListFtp) { FtpGroupOption op = new FtpGroupOption(item); op.IsSelected = true; this.FtpOptions.Add(op); } this.LanOptions = new ObservableCollection <LanGroupOption>(); foreach (var item in this.SelectGroupItem.ListLan) { LanGroupOption op = new LanGroupOption(item); op.IsSelected = true; this.LanOptions.Add(op); } }
public void InitNotesInfo() { NotesAddressConfig config = new NotesAddressConfig(); this.NotesOptions = new ObservableCollection <NotesGroupOption>(); foreach (var item in config.ListNotesAddr) { var op = new NotesGroupOption(item); this.NotesOptions.Add(op); } }
public void AddNotes() { if (this.notesTempRcver == null || this.notesTempRcver.Trim().Equals(string.Empty)) { this.Hint = "临时收件人不能为空!"; return; } if (this.NotesOptions == null) { this.NotesOptions = new ObservableCollection <NotesGroupOption>(); } NotesAddress addr = new NotesAddress(); addr.NotesName = this.notesTempRcver.Trim(); NotesGroupOption op = new NotesGroupOption(addr); op.IsSelected = true; this.NotesOptions.Add(op); this.NotesTempRcver = ""; }