コード例 #1
0
 private static void OnMentionOneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     var v = (string)e.NewValue;
     if (v == null)
         return;
     var inteli = GetInteligence(d);
     if (inteli == null)
     {
         SetInteligence(d, inteli = new TabCompletionInterService());
         inteli.InstallTextBoxHook((TextBox)d);
     }
     inteli.AddWord("@" + v + ":");
 }
コード例 #2
0
        private static void OnReferencesChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var inteli = GetInteligence(d);
            if (inteli == null)
            {
                SetInteligence(d, inteli = new TabCompletionInterService());
                inteli.InstallTextBoxHook((TextBox)d);
            }
            var v = (string)e.NewValue;
            if (v == null)
                return;
            inteli.Add("//@", v);

        }