示例#1
0
文件: Form1.cs 项目: zrolfs/DiaNN
        private void RawDataButton_Click(object sender, EventArgs e)
        {
            OpenFileDialog rawDataDialog = new OpenFileDialog();

            rawDataDialog.Multiselect = true;
            rawDataDialog.Filter      = "MS data files (*.raw, *.wiff, *.mzML, *.dia)|*.raw;*.wiff;*.mzML;*.dia|All files (*.*)|*.*";
            rawDataDialog.FilterIndex = 0;
            if (rawDataDialog.ShowDialog() == DialogResult.OK)
            {
                foreach (var str in rawDataDialog.FileNames)
                {
                    FilesList.AppendText(str + '\n');
                }
            }
        }
        private void DoImageSearch(object sender, RoutedEventArgs e)
        {
            var finder = new FileFinder();

            finder.FindFiles("c:\\", "jpg");
            foreach (var f in finder.FoundFilesDictionary)
            {
                FilesList.AppendText(f.Key);

                /*
                 * create a hyperlink to the directories where pictures are.
                 * rank them by size of pics... a directory with large pics (over 1MB or so)
                 * would be ranked higher than one with smaller images, as this would probably be
                 * non-user generated content. when the user clicks on a directory link, the page will
                 * show the file name and metadata like exif, plus a thumb.
                 */
            }
        }