//
//  ThingsAddInitFailViewController.m
//  OneCable
//
//  Created by nComz on 2017. 3. 21..
//  Copyright © 2017년 ntels. All rights reserved.
//

#import "ThingsAddInitFailViewController.h"
#import "CustomLabel.h"
#import "CustomImageView.h"
#import "CustomButton.h"

#import "ThingsAddStartViewController.h"

@interface ThingsAddInitFailViewController ()

@end

@implementation ThingsAddInitFailViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    _imgThings.image = [_addDevice imgaeForAddDel];
    _lblTitle.text = [NSString stringWithFormat:@"%@ 준비 실패", _addDevice.prdName];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];

}
- (IBAction)btnCancelTouched:(id)sender {
    [[JDFacade facade] dismissModalStack:YES completion:^{
        [[JDFacade facade] gotoWishMenu:KNMenuIdThings];
    }];
}

- (IBAction)btnRetryTouched:(id)sender {
    ThingsAddStartViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"ThingsAddStartViewController" storyboardName:@"Things"];
    vc.addDevice = _addDevice;
    vc.selectHub = _selectHub;

    
    [self showTransparencyModalView:vc];
}
@end
