コード例 #1
0
ファイル: IrcQueryViewModel.cs プロジェクト: schwarz/handle
 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
ファイル: SettingsViewModel.cs プロジェクト: schwarz/handle
 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
ファイル: SoundProvider.cs プロジェクト: schwarz/handle
 public SoundProvider(Settings settings)
 {
     this.settings = settings;
 }