Exemple #1
0
        public void RemoveSelectedFile()
        {
            if (SelectedFile == null)
            {
                System.Windows.MessageBox.Show("Please select a file to remove.", "No File Selected");
                return;
            }
            var pdf = PdfFiles.First(c => c == SelectedFile.Path);

            PdfFiles.Remove(pdf);
            PdfFilesList.Remove(SelectedFile);
            SelectedFile = null;
        }