コード例 #1
0
        public MainPage()
        {
            InitializeComponent();

            var service = new WatsonServiceBroker();

            BindingContext = new MessageWatsonViewModel(service);
        }
コード例 #2
0
 public MessageWatsonViewModel(WatsonServiceBroker service)
 {
     this.service        = service;
     this.messages       = new ObservableCollection <MessageViewModel>();
     SendMessageToWatson = new Command <MessageWatsonViewModel>(ExecuteSendMessageToWatson);
 }