public EditAccountViewModel(IEventAggregator eventAggregator, AccountViewModel account) { this.eventAggregator = eventAggregator; this.accountViewModel = account; //Set values of editable fields. UserName = accountViewModel.UserName; Password = accountViewModel.Password; ServerName = accountViewModel.ServerName; UseTLS = accountViewModel.UseTLS; UseSSL = accountViewModel.UseSSL; Port = accountViewModel.Port.ToString(); }
public ChatSessionViewModel(AccountViewModel account, JIDViewModel target) { this.account = account; this.target = target; this.WhenAny(x => x.account, x => x.Value).Subscribe(x => raisePropertyChanged("CanSendMessage")); }
public RosterGroupViewModel(agsXMPP.protocol.Base.Group group, AccountViewModel account) { this.groupName = group.Name; this.account = account; }
public JIDViewModel(Jid model, AccountViewModel account) { jabbrID = model; this.account = account; }