Inheritance: Caliburn.Micro.ReactiveUI.ReactiveScreen
Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 public ChatSessionViewModel(AccountViewModel account, JIDViewModel target)
 {
     this.account = account;
     this.target = target;
     this.WhenAny(x => x.account, x => x.Value).Subscribe(x => raisePropertyChanged("CanSendMessage"));
 }
Esempio n. 3
0
 public RosterGroupViewModel(agsXMPP.protocol.Base.Group group, AccountViewModel account)
 {
     this.groupName = group.Name;
     this.account = account;
 }
Esempio n. 4
0
 public JIDViewModel(Jid model, AccountViewModel account)
 {
     jabbrID = model;
     this.account = account;
 }