Пример #1
0
 private void PreventParentsFireEvent(IconItem item, bool flag)
 {
     if (item.Parent is IconItem)
     {
         ((IconItem)item.Parent).StandBy = flag;
         PreventParentsFireEvent((IconItem)item.Parent, flag);
     }
 }
        public void HandleIconItemClick(int mediaID, IconItem iitem)
        {
            media_files mf = DBManager.MediaFilesRepo.FindById(mediaID);

            if (mf != null)
            {
                AppMAnager.PEditarCatalogo_instance.LoadMediaFile(mf, iitem);
            }
            else
            {
                AppMAnager.PEditarCatalogo_instance.HideForm();
                AppMAnager.PEditarCatalogo_instance.DisableButtons();
            }
        }
Пример #3
0
        public async void HandleIconItemClick(int mediaID, IconItem iitem)
        {
            PHome._PHome.ClearFilter();
            if (mediaID == -1)   //Es un nodo Categoria
            {
                int categId = (int)iitem.Tag;
                List <media_files> mfList = await DBManager.MediaFilesRepo.FindByCategoriaAsync(categId, mediaID, false);

                HomeCatalogManager.ShowItemContent(mfList);
                PHome._PHome.selectionChanged();
            }
            else
            {
                media_files mf = DBManager.MediaFilesRepo.FindById(mediaID);
                if (mf != null)
                {
                    iitem.setFileExists(mf.FileExists());
                    List <media_files> mfList = await DBManager.MediaFilesRepo.FindByCategoriaAsync(mf.categoria_id, mediaID, false);

                    HomeCatalogManager.ShowItemContent(mfList);
                    PHome._PHome.selectionChanged();
                }
            }
        }