private void button4_Click(object sender, EventArgs e)
 {
     if (((textBox1.Text == "") | (textBox2.Text == "")) | (textBox3.Text == ""))
     {
         MessageBox.Show("One of the fields were not entered correctly. Please enter them before continuing.");
     }
     else
     {
         AscendedPatch.CreatePatch(textBox1.Text, textBox2.Text, textBox3.Text);
         MessageBox.Show("Patch successfully created!");
     }
 }
 private void button2_Click_1(object sender, EventArgs e)
 {
     if ((patchtext.Text == "") | (maptext.Text == ""))
     {
         MessageBox.Show("One of the fields were not entered correctly. Please enter them before continuing.");
     }
     else
     {
         tabControl1.Enabled = false;
         AscendedPatch.PokePatch(maptext.Text, patchtext.Text);
         Output(getfilename(patchtext.Text, 9), this);
     }
 }
Example #3
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (((textBox1.Text == "") | (textBox2.Text == "")) | (textBox3.Text == ""))
     {
         MessageBox.Show("One of the fields were not entered correctly. Please enter them before continuing.");
     }
     else
     {
         if (File.Exists(textBox2.Text))
         {
             File.Delete(textBox2.Text);
         }
         File.Copy(textBox1.Text, textBox2.Text);
         AscendedPatch.ApplyPatchData(textBox2.Text, textBox3.Text);
         MessageBox.Show("Patch successfully applied!");
     }
 }
 private void patch3_Click(object sender, EventArgs e)
 {
     tabControl1.Enabled = false;
     AscendedPatch.PokePatch(AppSettings.Settings.Patch_3_Map, AppSettings.Settings.Patch_3);
     Output(patch3.Text, this);
 }