Пример #1
0
        private void UpdateFileTypeFilter()
        {
            var filter        = fileTypeDropdown.Text;
            var currentFilter = fileSelect.FilterByExtension;

            if (filter == "All Files" && currentFilter != "*")
            {
                fileSelect.FilterByExtension = "*";
                fileSelect.GetFileNames();
                fileSelect.Draw();
            }
            else if (filter == "Text Doc (txt)" && currentFilter != "txt")
            {
                fileSelect.FilterByExtension = "txt";
                fileSelect.GetFileNames();
                fileSelect.Draw();
            }
        }