Ejemplo n.º 1
0
 private IEnumerator<IResult> GetAnalyteListWithAny()
 {
     if (UILib.IsDesignMode())
         yield break;
     GetAnalytesRequest getAnalytesRequest = new GetAnalytesRequest(true, false);
     yield return getAnalytesRequest;
     if (getAnalytesRequest.Error != null) {
         yield return new HandleExceptionResult(getAnalytesRequest.Error);
     }
     Instance.AnalyteListWithAny = getAnalytesRequest.Result.Clone();
 }
Ejemplo n.º 2
0
        public IEnumerable<IResult> LoadViewAnalytes()
        {
            if (this.HasLoadedAnalytes)
                yield break;

            GetAnalytesRequest getAnalytesRequest = new GetAnalytesRequest(false, true);
            yield return getAnalytesRequest;
            if (getAnalytesRequest.Error != null) {
                yield return new HandleExceptionResult(getAnalytesRequest.Error);
            }
            this.AnalyteItems = getAnalytesRequest.Result;
            AnalyteItemView.AnalyteItemGrid.Enable(defaultFocusDelegate);
            AnalyteItemView.AnalyteItemData.Disable();
            NotifyOfPropertyChange(() => AssistantAnalyteItemMode);
            this.HasLoadedAnalytes = true;
        }