private void buttonSaveMDAT_Click(object sender, EventArgs e) { if (saveFileDialog1.ShowDialog(this) != DialogResult.OK) { return; } treeView1.Nodes.Clear(); treeView1.BeginUpdate(); var parser = new Mp4Parser(openFileDialog1.FileName, treeView1); treeView1.EndUpdate(); parser.SaveMdats(saveFileDialog1.FileName); }
private void buttonOpenFile_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog(this) == DialogResult.OK) { textBoxFileName.Text = openFileDialog1.FileName; treeView1.Nodes.Clear(); treeView1.BeginUpdate(); _fileName = openFileDialog1.FileName; labelStatus.Text = $"Opening {_fileName}..."; Refresh(); Application.DoEvents(); var parser = new Mp4Parser(openFileDialog1.FileName, treeView1); buttonSaveMDAT.Enabled = true; treeView1.EndUpdate(); labelStatus.Text = string.Empty; Text = $"{Title} - {_fileName}"; } }