Beispiel #1
0
        private async void OnSelectCategory(CategoryDto obj)
        {
            if (IsBusy)
            {
                return;
            }

            IsBusy = true;

            try
            {
                // Thuc hien cong viec tai day
                var selectedCategory = ListCategoryBindProp.FindFirst(z => z.IsSelected);
                if (selectedCategory != null)
                {
                    selectedCategory.IsSelected = false;
                }
                obj.IsSelected               = true;
                CurrentCategory              = obj;
                InvoiceFrameVisibleBindProp  = false;
                MenuFrameVisibleBindProp     = true;
                ItemFrameVisibleBindProp     = true;
                DiscountFrameVisibleBindProp = false;
                SettingFrameVisibleBindProp  = false;
            }
            catch (Exception e)
            {
                await ShowErrorAsync(e);
            }
            finally
            {
                IsBusy = false;
            }
        }