public MainPage() { InitializeComponent(); var service = new WatsonServiceBroker(); BindingContext = new MessageWatsonViewModel(service); }
public MessageWatsonViewModel(WatsonServiceBroker service) { this.service = service; this.messages = new ObservableCollection <MessageViewModel>(); SendMessageToWatson = new Command <MessageWatsonViewModel>(ExecuteSendMessageToWatson); }