Exemplo n.º 1
0
        private void GoToAddress(string text)
        {
            int    address = int.Parse(text, NumberStyles.HexNumber);
            OpCode opCode  = OpCodes.Find(code => code.Address == address);

            if (opCode != null)
            {
                int index = opCode.Index;
                ListView.SelectedIndexCollection selected = listView.SelectedIndices;

                for (int i = 0; i < selected.Count; i++)
                {
                    int currentSelected = selected[i];
                    listView.Items[currentSelected].Selected = false;
                    listView.Items[currentSelected].Focused  = false;
                }

                listView.Items[index].Selected = true;
                listView.Items[index].Focused  = true;
                listView.EnsureVisible(index);
            }

            OpCodes = GameBoyRevampedBLL.LoadOpCodes();
            listView.VirtualListSize = OpCodes.Count;
        }
Exemplo n.º 2
0
 private void toolStripItemDesassembler_Click(object sender, EventArgs e)
 {
     _disassembleForm.OpCodes = GameBoyRevampedBLL.LoadOpCodes();
     HandleForm(_disassembleForm);
 }