Beispiel #1
0
        internal static void ShowFile(FileInfo fileInfo)
        {
            var newForm = new FormViewFile();

            newForm.SetFileInfo(fileInfo);
            newForm.Show();
        }
Beispiel #2
0
        private void GridFiles_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            var fileInfo = _files[e.RowIndex];

            // ToDo: Load in other thread
            if (fileInfo.LazyDuplicates == null)
            {
                var items = from item in _duplicates
                            where item.Fragments.Any(f => f.SourceFile == fileInfo.SourceFile)
                            select item;

                fileInfo.LazyDuplicates = items.ToArray();
            }

            FormViewFile.ShowFile(fileInfo);
        }