Пример #1
0
        private void btnLinkFile_Click(object sender, EventArgs e)
        {
            frmFileImporter importer = new frmFileImporter(frmFileImporter.FileTypes.CaptureFile);

            if (importer.ShowDialog() == DialogResult.OK)
            {
                tbFile.Text = importer.DialogRes.FilePath;

                if (importer.DialogRes.ImportFileMetadata)
                {
                    //ParseCaptureFile(importer.DialogRes.FilePath); TODO
                }
            }
        }
Пример #2
0
        private void btnLinkMetadataFile_Click(object sender, EventArgs e)
        {
            frmFileImporter importer = new frmFileImporter(frmFileImporter.FileTypes.MetadataFile);

            if (importer.ShowDialog() == DialogResult.OK)
            {
                tbMetadataFile.Text = importer.DialogRes.FilePath;

                if (importer.DialogRes.ImportFileMetadata)
                {
                    ParseMetadataFile(importer.DialogRes.Metadata, importer.DialogRes.UnparsableLines);
                }
            }
        }