Inheritance: Caliburn.Micro.ReactiveUI.ReactiveScreen
Exemplo 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();
        }
Exemplo 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"));
 }
Exemplo n.º 3
0
 public RosterGroupViewModel(agsXMPP.protocol.Base.Group group, AccountViewModel account)
 {
     this.groupName = group.Name;
     this.account = account;
 }
Exemplo n.º 4
0
 public JIDViewModel(Jid model, AccountViewModel account)
 {
     jabbrID = model;
     this.account = account;
 }