示例#1
0
        private void listPETSCII_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (listPETSCII.SelectedIndex == -1)
            {
                return;
            }
            Types.C64Character character = (Types.C64Character)listPETSCII.Items[listPETSCII.SelectedIndex].Value;
            BaseDocument       doc       = Core.MainForm.ActiveDocument;

            if (doc != null)
            {
                doc.InsertText("" + character.CharValue);
            }
        }
示例#2
0
        private void listChars_ItemActivate(object sender, EventArgs e)
        {
            if (listChars.SelectedItems.Count == 0)
            {
                return;
            }
            Types.C64Character character = (Types.C64Character)listChars.SelectedItems[0].Tag;
            BaseDocument       doc       = Core.MainForm.ActiveDocument;

            if (doc != null)
            {
                doc.InsertText("" + character.CharValue);
            }
        }