Beispiel #1
0
 protected virtual string FormatOption(FilterOption o)
 {
     return(FormatText(
                Color.PaleGoldenrod,
                "{0}: {1}",
                FormatText(Color.PaleGoldenrod, o.Category),
                FormatText(Color.LawnGreen, o.Name)));
 }
Beispiel #2
0
        protected virtual void AddOptionCell(int x, int y, int w, int h, FilterOption o)
        {
            y += (h / 2) - 10;

            if (o.IsSelected(Filter))
            {
                AddImage(x + 5, y, 9904);
                AddHtml(x + 35, y + 2, w - 40, 40, FormatText(Color.LawnGreen, o.Name), false, false);
            }
            else
            {
                AddButton(x + 5, y, 9903, 9905, btn => Refresh(o.Select(Filter)));
                AddHtml(x + 35, y + 2, w - 40, 40, FormatText(Color.White, o.Name), false, false);
            }
        }