Exemplo n.º 1
0
        private void Decorate(IGridButtonBuilder button, GridButtonType type)
        {
            if (type == GridButtonType.Image || type == GridButtonType.BareImage || type == GridButtonType.ImageAndText)
            {
                button.Decorators.Add(new GridButtonImageDecorator(button));
            }

            if (type != GridButtonType.Image && type != GridButtonType.BareImage)
            {
                button.Decorators.Add(new GridButtonTextDecorator(button));
            }
        }
Exemplo n.º 2
0
        private void Decorate(IGridButtonBuilder button, GridButtonType type)
        {
            //TODO: Implement command button types
            //if (type == GridButtonType.Image || type == GridButtonType.BareImage || type == GridButtonType.ImageAndText)
            //{
            button.Decorators.Add(new GridButtonImageDecorator(button));
            //}

            //if (type != GridButtonType.Image && type != GridButtonType.BareImage)
            //{
            button.Decorators.Add(new GridButtonTextDecorator(button));
            //}
        }
Exemplo n.º 3
0
 public GridButtonImageDecorator(IGridButtonBuilder button)
 {
     this.button = button;
 }
 public GridButtonTextDecorator(IGridButtonBuilder button)
 {
     this.button = button;
 }
 public GridButtonImageDecorator(IGridButtonBuilder button)
 {
     this.button = button;
 }
 public GridButtonTextDecorator(IGridButtonBuilder button)
 {
     this.button = button;
 }