Example #1
0
        /// <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();
        }
Example #2
0
        /// <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");
            }
        }
Example #3
0
 /// <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";
 }