Ejemplo n.º 1
0
        private async void DoGenerateNextBatchNumber(object obj)
        {
            try
            {
                WorkInProgress = true;
                var status = await RestHub.GenerateNextBatchNumber(NextBatch);

                if (status.HttpCode == System.Net.HttpStatusCode.OK)
                {
                    AppInfoBox.ShowInfoMessage(status.StatusMessage);
                    LoadDeliveryBatches();
                }
                else
                {
                    AppErrorBox.ShowErrorMessage("Can't Generate New Batch Number. .", status.HttpResponse);
                }
            }
            catch (Exception ex)
            {
                AppErrorBox.ShowErrorMessage("Can't Generate New Batch Number . .", ex.ToString());
            }
            finally
            {
                WorkInProgress = false;
            }
        }