コード例 #1
0
ファイル: ChatHistory.cs プロジェクト: ermau/Gablarski
        public ChatHistory(SocialClient socialClient)
        {
            if (socialClient == null)
                throw new ArgumentNullException ("socialClient");

            this.socialClient = socialClient;
            this.socialClient.ReceivedTextMessage += OnReceivedTextMessage;
        }
コード例 #2
0
ファイル: AddBuddyViewModel.cs プロジェクト: ermau/Gablarski
        public AddBuddyViewModel(SocialClient client)
        {
            if (client == null)
                throw new ArgumentNullException ("client");

            this.client = client;
            this.addBuddy = new RelayCommand<Person> (OnAddBuddy, CanAddBuddy);
            this.searchResults = new AsyncValue<IEnumerable<Person>> (
                Task.FromResult (Enumerable.Empty<Person>()), Enumerable.Empty<Person>());
        }