Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            //主窗口设置
            double winWidth  = SystemParameters.WorkArea.Width;
            double winHeight = SystemParameters.WorkArea.Height;

            if (1280 < winWidth)
            {
                Width = 1280;
            }
            else
            {
                Width = winWidth;
            }
            if (800 < winHeight)
            {
                Height = 800;
            }
            else
            {
                Height = winHeight;
            }

            //初始化智能下拉列表功能
            SmartList.Initialization(66, 100, 200, Global.SmartPath);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 文本框获得逻辑焦点->
 /// comNameTB专用
 /// </summary>
 protected void comNameTB_GotFocus(object sender, RoutedEventArgs e)
 {
     SmartList.TBGotFocus(sender as TextBox, SmartLB, BodyGrid, true, CompanyNameList);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 文本框内容改变->
 /// 筛选SmartInfo列表显示到SmartLB
 /// </summary>
 protected void SmartTB_TextChanged(object sender, TextChangedEventArgs e)
 {
     SmartList.TBChanged(SmartLB);
 }
Exemplo n.º 4
0
 /// <summary>
 /// 文本框有键盘键按下->
 /// 上下键,逻辑焦点给SmartLB
 /// </summary>
 protected void SmartTB_PreviewKeyDown(object sender, KeyEventArgs e)
 {
     SmartList.TBKeyDown(SmartLB, e);
 }
Exemplo n.º 5
0
 /// <summary>
 /// 文本框丢失逻辑焦点->
 /// 不更新(适用于用户给定SmartInfo列表)
 /// </summary>
 protected void SmartTB_LostFocusNotUpdate(object sender, RoutedEventArgs e)
 {
     SmartList.TBLostFocus(SmartLB, false);
 }
Exemplo n.º 6
0
 /// <summary>
 /// 文本框丢失逻辑焦点->
 /// 更新文本框Tag对应标记(Mark)的权重及时间
 /// </summary>
 protected void SmartTB_LostFocus(object sender, RoutedEventArgs e)
 {
     SmartList.TBLostFocus(SmartLB, true);
 }
Exemplo n.º 7
0
 /// <summary>
 /// 文本框获得逻辑焦点->
 /// 生成文本框Tag对应标记(Mark)的SmartInfo列表
 /// </summary>
 protected void SmartTB_GotFocus(object sender, RoutedEventArgs e)
 {
     SmartList.TBGotFocus(sender as TextBox, SmartLB, BodyGrid, true);
 }
Exemplo n.º 8
0
 private void SmartLB_PreviewMouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     SmartList.FillText(SmartLB);
 }
Exemplo n.º 9
0
 private void SmartLB_PreviewKeyDown(object sender, KeyEventArgs e)
 {
     SmartList.LBKeyDown(SmartLB, e);
 }
Exemplo n.º 10
0
 private void NavigationWindow_Closed(object sender, System.EventArgs e)
 {
     //保存智能下拉列表功能
     SmartList.Save();
     //保存智能下拉列表功能
 }