Пример #1
0
 public IrcQueryViewModel(IrcUser user, IrcClient client, Settings settings)
 {
     this.Settings = settings;
       this.User = user;
       this.client = client;
       this.DisplayName = user.NickName;
       this.Messages = new BindableCollection<Message>();
       this.Closable = true;
       // TODO
       this.client.LocalUser.MessageReceived += this.messageReceived;
 }
Пример #2
0
 public SettingsViewModel(Settings settings)
 {
     this.Settings = settings;
       this.DisplayName = "Settings";
       if (this.Settings.FilterPatterns == null)
       {
     this.FilterPatterns = new BindableCollection<string>();
       }
       else
       {
     this.FilterPatterns = new BindableCollection<string>(this.Settings.FilterPatterns);
       }
 }
Пример #3
0
 public SoundProvider(Settings settings)
 {
     this.settings = settings;
 }