void Import_script_butClick(object sender, EventArgs e) { string path = null; int filesize = FileIO.load_file(ref me3script_new, ref path, scriptfilter); if (filesize <= 996) { me3file.set_script(me3script_new); custom_script.Checked = true; script_check.Checked = me3file.has_script(); MessageBox.Show("Custom script imported."); } else { MessageBox.Show("Invalid file size."); } }