Beispiel #1
0
 internal void SaveUsedItem()
 {
     if (this.SelectedItem is IntelliBoxItem item)
     {
         if (membersInBox)
         {
             this.LastUsedMember = item;
         }
         else if (item.ImageIndex != (int)IntelliType.Keyword && item.ImageIndex != (int)IntelliType.Snippet)
         {
             this.LastUsedNonMember = item;
         }
     }
 }
Beispiel #2
0
 internal void SaveUsedItem()
 {
     if (this.listBox.SelectedItem is IntelliBoxItem item)
     {
         if (this.intelliBoxContents == IntelliBoxContents.Members || this.intelliBoxContents == IntelliBoxContents.XamlAttributes)
         {
             this.LastUsedMember = item;
         }
         else if ((this.intelliBoxContents == IntelliBoxContents.NonMembers || this.intelliBoxContents == IntelliBoxContents.XamlTags) &&
                  item.IntelliType != IntelliType.Keyword && item.IntelliType != IntelliType.Snippet)
         {
             this.LastUsedNonMember = item;
         }
     }
 }