示例#1
0
        private void OnCheatEdit(object sender, EventArgs eventArgs)
        {
            CheatDetailsForm cheatDetailsForm = new CheatDetailsForm(selectedCheat, false);

            if (cheatDetailsForm.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }
            UpdateCheatListBox();
        }
示例#2
0
        private void OnCheatNewManualEntry(object sender, EventArgs eventArgs)
        {
            Cheat            newCheat         = new Cheat();
            CheatDetailsForm cheatDetailsForm = new CheatDetailsForm(newCheat, true);

            if (cheatDetailsForm.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            cheatSystem.AddCheat(newCheat);

            UpdateCheatListBox();
        }
示例#3
0
        private void OnCreateCheatMenuItem(object sender, EventArgs eventArgs)
        {
            if (resultListBox.SelectedIndex < 0)
            {
                return;
            }

            Cheat newCheat = new Cheat();

            newCheat.Address = Convert.ToUInt16(
                resultListBox.SelectedItem.ToString().Substring(0, 4), 16);
            CheatDetailsForm cheatDetailsForm = new CheatDetailsForm(newCheat, false);

            if (cheatDetailsForm.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            cheatSystem.AddCheat(newCheat);
        }