/// <summary> /// MenuItem new Cheat File /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void newCheatFileToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); CheatForm cf = new CheatForm(GameName, CheatPath); cf.ShowDialog(); this.Show(); LoadCheats(); }
/// <summary> /// Ouvre un fichier Cheat /// </summary> /// <param name="CFilePath"></param> public static void Open(string CFilePath) { if (!File.Exists(CFilePath)) { return; } CheatForm cf = new CheatForm(); cf._CheatFilePath = CFilePath; try { cf.rtBOX1.Text = File.ReadAllText(CFilePath); cf.ShowDialog(); } catch { MessageBox.Show("Error"); } }
/// <summary> /// Open a file Cheat /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void openCheatFileToolStripMenuItem_Click(object sender, EventArgs e) { CheatForm.Open(Path.Combine(CheatPath, (string)lisbCheats.SelectedItem)); // cf._CheatFilePath = "dd"; }