Beispiel #1
0
 public ToolTipDisplayClass(ComboBox cboShortName, ShortCommandClass shortCommand)
 {
     this.cboShortName         = cboShortName;
     this.shortCommand         = shortCommand;
     cboShortName.DrawItem    += cboShortName_DrawItem;
     cboShortName.TextChanged += cboShortName_TextChanged;
     InitToolTip();
 }
Beispiel #2
0
 /// <summary>
 /// 初始化程序
 /// </summary>
 private void InitForm()
 {
     shortCommand = new ShortCommandClass();
     ShowFormAndFocusInputBox();
     InitShortNameComboBox();
     AddAutoCompleteSource();
     cboShortName.DrawMode   = DrawMode.OwnerDrawFixed;
     toolTipDisplay          = new ToolTipDisplayClass(cboShortName, shortCommand);
     isAutoHideForm          = AppSettingValue.IsAutoHideForm;
     cboShortName.LostFocus += OnLostFocus;
 }