Beispiel #1
0
        private int PromptForGotoOffset()
        {
            if (!RomDataPresent())
            {
                return(-1);
            }

            var go     = new GotoDialog(ViewOffset + table.CurrentCell.RowIndex, Project.Data);
            var result = go.ShowDialog();

            if (result != DialogResult.OK)
            {
                return(-1);
            }

            return(go.GetPcOffset());
        }
Beispiel #2
0
        private int PromptForGotoOffset()
        {
            if (!RomDataPresent())
            {
                return(-1);
            }

            var go     = new GotoDialog(SelectedOffset, Project.Data);
            var result = go.ShowDialog();

            if (result != DialogResult.OK)
            {
                return(-1);
            }

            return(go.GetPcOffset());
        }