示例#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;

            editFilename.CurrentChar = character.CharValue;
            ++editFilename.CursorPos;
        }
示例#2
0
 private void InsertPETSCII()
 {
     if (listPETSCII.SelectedIndex == -1)
     {
         return;
     }
     Types.C64Character character = (Types.C64Character)listPETSCII.Items[listPETSCII.SelectedIndex].Value;
     if ((Core.Navigating.LastActiveCodeDocument != null) &&
         (Core.Navigating.LastActiveCodeDocument.BaseDoc != null))
     {
         BaseDocument doc = Core.Navigating.LastActiveCodeDocument.BaseDoc;
         if (doc != null)
         {
             doc.InsertText("" + character.CharValue);
         }
     }
 }