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; }
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); } }
public SoundProvider(Settings settings) { this.settings = settings; }