예제 #1
0
        private bool FilterHandler(GDMRecord record)
        {
            bool result = true;

            try {
                if (!string.IsNullOrEmpty(fFilterFolder) && FoldersHelper.HasFolderSupport(record.RecordType))
                {
                    result = fFilterFolder.Equals(FoldersHelper.GetFolder(record));
                }
            } catch (Exception ex) {
                Logger.WriteError("FoldersWidget.FilterHandler()", ex);
            }
            return(result);
        }
예제 #2
0
        private void CollectData()
        {
            int num = fBase.Context.Tree.RecordsCount;

            for (int i = 0; i < num; i++)
            {
                GDMRecord rec = fBase.Context.Tree[i];
                if (FoldersHelper.HasFolderSupport(rec.RecordType))
                {
                    string folder = FoldersHelper.GetFolder(rec);
                    if (!string.IsNullOrEmpty(folder))
                    {
                        fFolders.Add(folder);
                    }
                }
            }
        }