Пример #1
0
 public static bool ViewInfoEquals(FilterLabelInfoTextViewInfo vi1, FilterLabelInfoTextViewInfo vi2)
 {
     if (vi1 == null || vi2 == null)
     {
         return(ReferenceEquals(vi1, vi2));
     }
     return(ReferenceEquals(vi1.InfoText, vi2.InfoText));
 }
Пример #2
0
        public static Rectangle GetEditorBoundsByElement(FilterLabelInfoTextViewInfo element)
        {
            FilterControl control = element.FilterViewInfo.Owner.OwnerControl;
            Rectangle     bounds  = element.TextElement.Bounds;

            bounds.Y     -= (control.FilterViewInfo.RowHeight - bounds.Height) / 2;
            bounds.Height = control.FilterViewInfo.RowHeight;
            bounds.Width  = GetElementWidth(true, bounds.Width);
            return(bounds);
        }
Пример #3
0
 public static bool EditorItem(FilterLabelInfoTextViewInfo info)
 {
     return(EditorItem(((ILabelInfoEx)info.ViewInfo.Label).Owner.OwnerControl, info.InfoText));
 }