Пример #1
0
 private void dev_Patch_Click(object sender, EventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(dev_filename.Text) || !string.IsNullOrEmpty(dev_key.Text))
         {
             Patcher.DeveloperPatch(dev_key.Text, dev_filename.Text, dev_offset);
         }
         else
         {
             MessageBox.Show("Patched failed \nDetail : You haven't entered enough information", "Done", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Пример #2
0
 private void btnPatch_Click(object sender, EventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(txtPath.Text))
         {
             Patcher.Patch(comboVersion.Text, txtPath.Text, txtOffset);
         }
         else
         {
             MessageBox.Show("Patched failed \nDetail : You haven't entered filename", "Done", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }