示例#1
0
        public int CompareTo(object obj)
        {
            if (obj is BaseDocument)
            {
                BaseDocument temp = (BaseDocument)obj;

                return(GetHashCode().CompareTo(temp.GetHashCode()));
            }
            throw new ArgumentException("object is not a BaseDocument");
        }
示例#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);
         }
     }
 }