//
//  ViewController.m
//  AntsContract
//
//  Created by Ray on 12/16/16.
//  Copyright © 2016 United Software Applications, Inc. All rights reserved.
//

#import "RootViewController.h"
#import "DocumentPageViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)OnHICClick:(id)sender {
    
    
    

    
    DocumentPageViewController* dvc = [self.storyboard instantiateViewControllerWithIdentifier:@"DocumentPageViewController" ];
    
    dvc.templateName = @"GEIC - Home Improvement Contract 2016.json";
    dvc.pdfName = @"GEIC - Home Improvement Contract 2016.pdf";

    [self.navigationController pushViewController:dvc animated:true];
}
- (IBAction)OnSRLClick:(id)sender {
    
    DocumentPageViewController* dvc = [self.storyboard instantiateViewControllerWithIdentifier:@"DocumentPageViewController" ];

    dvc.templateName = @"SUBCONTRACTORS REFERRAL LIST.json";
    dvc.pdfName = @"SUBCONTRACTORS REFERRAL LIST.pdf";
    
    [self.navigationController pushViewController:dvc animated:true];
}



@end
