예제 #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);
         }
     }
 }