示例#1
0
        private bool ValidateForm()
        {
            if (string.IsNullOrEmpty(Inventory.ShortDescription))
            {
                _messageService.Send(this, "ShortDescriptionMissing");

                return(false);
            }

            return(true);
        }
        public async void Populate()
        {
            _messageService.Send(this, "DownloadingImages");
            //how do I make this cancellable?
            try
            {
                Images = await _inventoryFacade.GetInventoryImages(InventoryId);
            }
            catch (Exception e)
            {
                _messageService.Send(this, "DownloadFailed", e.Message);
            }

            _messageService.Send(this, "DownloadComplete");
        }