예제 #1
0
 /// <summary>
 /// Sets the empty caption (only for boolean properties) and assigns icon if ToolTip exists
 /// </summary>
 /// <param name="layoutItem"></param>
 /// <param name="control"></param>
 /// <param name="location"></param>
 private void SetCaptionLocation(LayoutControlItem layoutItem, object control, Locations location)
 {
     if (layoutItem != null && control != null)
     {
         CheckEdit checkEdit = control as CheckEdit;
         if (checkEdit != null)
         {
             if (!string.IsNullOrEmpty(checkEdit.ToolTip))
             {
                 ImageOptionsHelper.AssignImage(layoutItem.ImageOptions, this.AboutInfoImage, new Size(14, 14));
                 checkEdit.Text = "";
                 checkEdit.AutoSizeInLayoutControl = true;
                 layoutItem.TextVisible            = true;
                 layoutItem.TextLocation           = location;
                 layoutItem.TextAlignMode          = TextAlignModeItem.AutoSize;
             }
         }
         else
         {
             if (layoutItem != null && !string.IsNullOrEmpty(layoutItem.OptionsToolTip.ToolTip))
             {
                 ImageOptionsHelper.AssignImage(layoutItem.ImageOptions, this.AboutInfoImage, new Size(14, 14));
                 layoutItem.ImageOptions.Alignment = ContentAlignment.MiddleRight;
             }
         }
     }
 }
예제 #2
0
 protected virtual void InitializeImages()
 {
     ImageOptionsHelper.AssignImage(barMdiChildrenListItem.ImageOptions, "Action_WindowList");
     ImageOptionsHelper.AssignImage(barSubItemPanels.ImageOptions, "Action_Navigation");
 }