Exemple #1
0
        private void cheat_list_item_active_Click(object sender, EventArgs e)
        {
            if (cheat_list_view.SelectedRows == null)
                return;

            DataGridViewSelectedRowCollection items = cheat_list_view.SelectedRows;
            for (int i = 0; i < items.Count; ++i)
            {
                Cheat cheat = cheatList[items[i].Index];

                cheat.GetDestination().SetRuntime(cheat.GetSource());
            }
        }
Exemple #2
0
        void add_new_row_to_cheat_list_view(Cheat cheat)
        {
            int index = this.lvCheatList.Rows.Add();

            DataGridViewRow cheat_list_view_item = lvCheatList.Rows[index];
            CheatOperator   destination          = cheat.GetDestination();
            CheatOperator   source = cheat.GetSource();

            cheat_list_view_item.Cells[CHEAT_LIST_ADDRESS].Value = destination.Display();
            cheat_list_view_item.Cells[CHEAT_LIST_TYPE].Value    = MemoryHelper.GetStringOfValueType(source.ValueType);
            cheat_list_view_item.Cells[CHEAT_LIST_VALUE].Value   = source.Display();
            cheat_list_view_item.Cells[CHEAT_LIST_SECTION].Value = processManager.MappedSectionList.GetSectionName(destination.GetSectionID());
            cheat_list_view_item.Cells[CHEAT_LIST_LOCK].Value    = cheat.Lock;
            cheat_list_view_item.Cells[CHEAT_LIST_DESC].Value    = cheat.Description;
        }