private void EpisodeShadowToolStripMenuItem_Click(object sender, EventArgs e) { OpenFileDialog cnvrsBrowser = new OpenFileDialog(); cnvrsBrowser.Title = "Select Episode Shadow CNVRS"; cnvrsBrowser.Filter = "Sonic Forces Text File (*.cnvrs-text)|*.cnvrs-text"; cnvrsBrowser.FilterIndex = 1; cnvrsBrowser.RestoreDirectory = true; if (cnvrsBrowser.ShowDialog() == DialogResult.OK) { //Load RFL episodeShadowToolStripMenuItem.Checked = true; textCaptionDLC.Load(cnvrsBrowser.FileName); //if (captionRFL != null) { loadCaptionParams(); } } }
//GUI Events private void openToolStripMenuItem_Click(object sender, EventArgs e) { var ofd = new OpenFileDialog() { Filter = "Sonic Forces Text Files|*.cnvrs-text", CheckFileExists = true, }; if (ofd.ShowDialog() == DialogResult.OK) { ForcesText = new ForcesText(); openFile = ofd.FileName; ForcesText.Load(ofd.FileName); UpdateGUI(); saveToolStripMenuItem.Enabled = true; saveAsToolStripMenuItem.Enabled = true; exportXMLToolStripMenuItem.Enabled = true; } }