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)); } }
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)); //} }
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; }