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); } }
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); } }