コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }