Exemplo n.º 1
0
 public void ControlInitialize()
 {
     Query = "";
     cur   = KWfirst;
     cur.SetFirst();
     cur.SetFocus();
 }
Exemplo n.º 2
0
        /*
         * private void Button_Click(object sender, RoutedEventArgs e)
         * {
         *  var btn = sender as Button;
         *  String str = btn.Content as String;
         *  TextBlock tempBlock = new TextBlock();
         *  tempBlock.Text = str;
         *  tempBlock.Margin = new Thickness(5, 1, 5, 1);
         *  WPPNdecide.Children.Add(tempBlock);
         * }
         */

        private void KeywordControl_KeywordComplete()
        {
            KWfirst.Leading = false;
            if (cur != null)
            {
                cur.ReleaseFocus();
                Query += " " + cur.Keyword;
            }

            KeywordControl tempKW = new KeywordControl();

            tempKW.ShowAssociates  += KeywordControl_ShowAssociates;
            tempKW.KeywordComplete += KeywordControl_KeywordComplete;
            cur = tempKW;
            WPPNinput.Children.Add(tempKW);
            tempKW.SetFocus();
        }