Ejemplo n.º 1
0
        /// <summary>
        /// Load Indicator Content
        /// </summary>
        /// <returns></returns>
        public async Task LoadContent()
        {
            if (NotNetOrConnection)
            {
                return;
            }

            try
            {
                State = ModelState.Loading;
                List <IndicatorContent> indicatorcontents = await NAV.GetIndicatorContent(LocationCode, ZoneCode, BinCode, ID, Parameters, ACD.Default).ConfigureAwait(true);

                if ((NotDisposed) && (indicatorcontents is List <IndicatorContent>))
                {
                    FillContent(indicatorcontents);
                }
            }
            catch (Exception e)
            {
                State = ModelState.Error;
                //ErrorText = AppResources.Error_LoadRacks;
                ErrorText = e.Message; // AppResources.Error_LoadRacks;
            }
        }