Exemple #1
0
        /*-------------------------- Main ------------------------------------------*/

        public MainWindow()
        {
            InitializeComponent();
            PreviewPanelProcessor pre = new PreviewPanelProcessor();

            pre.LoadContent(StackHere);
            FileProcessor fp = new FileProcessor();

            duhList = fp.LoadFilesToList();
        }
        /*----------------- Methods to process files and load them to preview panel ------------------------*/

        public void LoadContent(StackPanel panel)
        {
            FileProcessor fileProcessor = new FileProcessor();

            fileList = fileProcessor.LoadFilesToList();
            if (fileList.Count != 0)
            {
                List <RichTextBox> RTBToLoad = BindHere();
                foreach (RichTextBox rtb in RTBToLoad)
                {
                    panel.Children.Add(rtb);
                }
            }
        }