示例#1
0
        private void GetRandomJoke()
        {
            Services.ChuckNorrisJokeClient jokeClient = new Services.ChuckNorrisJokeClient();
            IEnumerable <string>           jokes      = jokeClient.Random();

            _joke = jokes.First();
        }
示例#2
0
 public MainWindowViewModel()
 {
     Client = new Services.ChuckNorrisJokeClient();
     GetRandomJoke();
     _categories = Client.Categories();
 }