private void FileOpen(object sender, FileAddedEventArgs e)
        {
            foreach (string file in e.Files)
            {
                ListViewItem item = lvFiles.Items.Add(Path.GetFileName(file));
                item.Tag = file;
            }

            if (e.Files.Count > 0)
            {
                OpenDocument(e.Files[0]);
            }
        }
示例#2
0
        private void FileOpen(object sender, FileAddedEventArgs e)
        {
            foreach (string file in e.Files)
            {
                ListViewItem item = lvFiles.Items.Add(Path.GetFileName(file));
                item.Tag = file;
            }

            if (e.Files.Count > 0)
            {
                OpenDocument(e.Files[0]);
            }
        }