private void InitializeSearchConnectionCommand(ITransportService transportService) { var searchConnectionsCommand = new SearchConnectionAsyncCommand(transportService); searchConnectionsCommand.BeginStationSearch += (sender, args) => this.IsBusy = true; searchConnectionsCommand.SearchConnectionCompleted += (sender, args) => { this.NewSearchConnectionResult(sender, args); this.IsBusy = false; }; this.SearchConnectionsCommand = searchConnectionsCommand; }