//
//  CommodityMutipleSelectBottomView.m
//  ALand
//
//  Created by Z on 16/3/29.
//  Copyright © 2016年 Z. All rights reserved.
//

#import "CommodityMutipleSelectBottomView.h"

@interface CommodityMutipleSelectBottomView ()


@end
@implementation CommodityMutipleSelectBottomView

- (void)awakeFromNib {
    self.buttonDelete.tag = ActionTypeDelete;
    self.buttonPutOnShelf.tag = ActionTypeOnline;
    self.buttonPutOffShelf.tag = ActionTypeOffline;
}

- (void)selectAll {
    [self.buttonSelectAll setImage:[UIImage imageNamed:@"mutipleselect"] forState:UIControlStateNormal];
}
- (void)deselectAll {
    [self.buttonSelectAll setImage:[UIImage imageNamed:@"mutipleDeselect"] forState:UIControlStateNormal];
}

- (void)addTarget:(id)target delete:(SEL)deletAction online:(SEL)onlineAction offline:(SEL)offlineAction
{
    [self.buttonDelete addTarget:target action:deletAction forControlEvents:UIControlEventTouchUpInside];
    [self.buttonPutOnShelf addTarget:target action:onlineAction forControlEvents:UIControlEventTouchUpInside];
    [self.buttonPutOffShelf addTarget:target action:offlineAction forControlEvents:UIControlEventTouchUpInside];

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
