Example #1
0
        void service_RequestCompleted(object sender, BlastRequestCompletedEventArgs e)
        {
            BlastResult result = e.SearchResult[0];
            Hit         hit    = result.Records[0].Hits[0];

            Assert.IsNotNull(hit);
        }
        /// <summary>
        /// Called when the request completed asynchronously
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void BlastServiceHandlerRequestCompleted(object sender, BlastRequestCompletedEventArgs e)
        {
            IsRunning = null;

            if (e.IsCanceled)
            {
                return;
            }

            if (e.Error != null || !string.IsNullOrEmpty(e.ErrorMessage))
            {
                ShowError("An error occurred", e.ErrorMessage, e.Error);
                return;
            }

            IList <BlastResult> results = e.SearchResult;

            if (results == null || results.Count == 0)
            {
                MessageBox.Show("No Results returned.");
                ResultHits = null;
            }
            else
            {
                ResultHits = results[0].Records[0].Hits;
            }
        }
Example #3
0
 void ebiBlastService_RequestCompleted(object sender, BlastRequestCompletedEventArgs e)
 {
 }
Example #4
0
 void service_RequestCompleted(object sender, BlastRequestCompletedEventArgs e)
 {
     BlastResult result = e.SearchResult[0];
     Hit hit = result.Records[0].Hits[0];
     Assert.IsNotNull(hit);
 }