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

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

#import "ThingsAddIncludeViewController.h"

@interface ThingsAddInitCompleteViewController ()

@end

@implementation ThingsAddInitCompleteViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    [self prepareViewDidLoad];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];

}


- (void)prepareViewDidLoad {
    
    _imgThings.image = [_addDevice imgaeForAddDel];
    _lblTitle.text = [NSString stringWithFormat:@"%@ 준비 완료", _addDevice.prdName];
}


- (IBAction)btnCancelTouched:(id)sender {
    [[JDFacade facade] dismissModalStack:YES completion:^{
        [[JDFacade facade] gotoWishMenu:KNMenuIdThings];
    }];
}
- (IBAction)btnNextTouched:(id)sender {
    ThingsAddIncludeViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"ThingsAddIncludeViewController" storyboardName:@"Things"];
    vc.addDevice = _addDevice;
    vc.selectHub = _selectHub;
    
    [self showTransparencyModalView:vc];
}

@end
