예제 #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            MG64RomFile.LoadRom(openFileDialog2.FileName);

            TestForm form = new TestForm();

            form.Show();
        }
예제 #2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            openFileDialog1.Filter      = "Mario Golf 64 ROM |*.z64";
            openFileDialog1.FilterIndex = 1;

            openFileDialog1.ShowDialog();

            textBox1.Text = openFileDialog1.FileName;

            try
            {
                RomFile = MG64RomFile.LoadRom(openFileDialog1.FileName);

                TestForm form = new TestForm(RomFile);
                form.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Invaild ROM." + ex.Message);
            }
        }
        private void Button1_Click(object sender, EventArgs e)
        {
            openFileDialog1.Filter      = "Mario Golf 64 ROM |*.z64";
            openFileDialog1.FilterIndex = 1;

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                textBox1.Text = openFileDialog1.FileName;
            }

            else
            {
                return;
            }

            {
                RomFile = MG64RomFile.LoadRom(openFileDialog1.FileName);

                TestForm form = new TestForm(RomFile);
                form.Show();
            }
        }