Ejemplo n.º 1
0
        private void AddFolder(string folderName, string className = "")
        {
            ObservableCollection <DocumentData> tempList = new ObservableCollection <DocumentData>();

            tempList.CollectionChanged += tempList_CollectionChanged;
            DocumentsLoader.GetAllDocuemntsNew(folderName, tempList);
            foreach (var doc in tempList)
            {
                SetupData.AddPage(new PageData()
                {
                    Setup = new PageSetupData()
                    {
                        FileName = doc.ImageSource, PageNo = 1
                    }, DocData = doc
                });
            }

            SetupData.RemoveBadFields(_filterFields);

            AddConsoleMessage("Done loading Documents");
        }