コード例 #1
0
ファイル: ilabelinfo.cs プロジェクト: iamwsx05/hms
 void AddLabelInfoText(string text, FilterControlFocusInfo focusInfo, Color activeColor, ElementType type, bool active)
 {
     if (active)
     {
         LabelInfoText info = Texts.Add(text, activeColor, true);
         info.Tag = new NodeElement(focusInfo, type);
     }
     else
     {
         Texts.Add(text, activeColor, active);
     }
 }
コード例 #2
0
ファイル: ilabelinfo.cs プロジェクト: iamwsx05/hms
 public static bool EditorItem(FilterControl control, LabelInfoText text)
 {
     if (!control.ShowEditors &&
         control.ActiveEditor != null &&
         control.FocusedItem != null &&
         control.FocusedItemType == ElementType.Value &&
         control.FocusedItem.InfoText.Equals(text))
     {
         return(true);
     }
     if (control.ShowEditors &&
         text.Tag != null &&
         ((NodeElement)text.Tag).Type == ElementType.Value)
     {
         return(true);
     }
     return(false);
 }
コード例 #3
0
ファイル: ilabelinfo.cs プロジェクト: iamwsx05/hms
 public FilterLabelInfoTextViewInfo(FilterLabelInfoViewInfo viewInfo, LabelInfoText infoText, int width, Point location)
     : base(viewInfo, infoText, width)
 {
     this.location = location;
     this.list     = new ArrayList();
 }
コード例 #4
0
ファイル: ilabelinfo.cs プロジェクト: iamwsx05/hms
 protected override LabelInfoTextViewInfoBase CreateViewInfo(LabelInfoText infoText, int width)
 {
     return(new FilterLabelInfoTextViewInfo(this, infoText, width, this.Label.ClientLocation));
 }