private void mHackStompMenuItem_Click(object sender, EventArgs e) { string errors = InputParser.CheckTextForRedundentSetCommands(richTextBox1.Text); if (!String.IsNullOrEmpty(errors)) { RichTextDisplay disp = new RichTextDisplay(); disp.ContentBox.Font = richTextBox1.Font; disp.ContentBox.Text = errors; disp.Text = string.Concat("HACK 'Stomp' check Results"); disp.Show(); //MessageBox.Show(errors); } else { MessageBox.Show("No conflicts detected!"); } }
private void mGetLocationsMenuItem_Click(object sender, System.EventArgs e) { if( tool != null && tool.OutputRom != null ) { OpenFileDialog dlg = new OpenFileDialog(); dlg.RestoreDirectory=true; if( dlg.ShowDialog(this) == DialogResult.OK ) { string result = MainClass.GetLocations(dlg.FileName, tool.OutputRom); RichTextDisplay disp = new RichTextDisplay(); disp.ContentBox.Font = richTextBox1.Font; disp.ContentBox.Text = result; disp.Text = string.Concat("Results from '", dlg.FileName, "'"); disp.Show(); } dlg.Dispose(); } else { MessageBox.Show(this, "Please load a ROM first", "Error!!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }