-
Notifications
You must be signed in to change notification settings - Fork 3
/
LandingPage.swift
88 lines (67 loc) · 2.54 KB
/
LandingPage.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//
// LandingPage.swift
// iBOCA
//
// Created by saman on 6/27/17.
// Copyright © 2017 sunspot. All rights reserved.
//
import Foundation
import UIKit
let TestOrientation = 1
let TestSimpleMemory = 2
let TestVisualAssociation = 3
let TestTrails = 4
let TestForwardDigitSpan = 5
let TestBackwardsDigitSpan = 6
let TestCatsAndDogs = 7
let Test3DFigureCopy = 8
let TestSerialSevens = 9
let TestForwardSpatialSpan = 10
let TestBackwardSpatialSpan = 11
let TestNampingPictures = 12
let TestSemanticListGeneration = 13
let TestMOCAResults = 14
let TestGDTResults = 15
let TestGoldStandard = 16
enum TestStatus {
case NotStarted, Running, Done
}
var Status = [TestStatus](repeating: TestStatus.NotStarted, count: 20)
var doneSetup = false
class LandingPage: ViewController {
@IBOutlet weak var GotoTests: UIButton!
@IBAction func GotoTests(_ sender: UIButton) {
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextViewController = storyBoard.instantiateViewController(withIdentifier: "Demographics")
self.present(nextViewController, animated:true, completion:nil)
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
Status[TestOrientation] = TestStatus.NotStarted
Status[TestSimpleMemory] = TestStatus.NotStarted
Status[TestVisualAssociation] = TestStatus.NotStarted
Status[TestTrails] = TestStatus.NotStarted
Status[TestForwardDigitSpan] = TestStatus.NotStarted
Status[TestBackwardsDigitSpan] = TestStatus.NotStarted
Status[TestCatsAndDogs] = TestStatus.NotStarted
Status[Test3DFigureCopy] = TestStatus.NotStarted
Status[TestSerialSevens] = TestStatus.NotStarted
Status[TestForwardSpatialSpan] = TestStatus.NotStarted
Status[TestBackwardSpatialSpan] = TestStatus.NotStarted
Status[TestNampingPictures] = TestStatus.NotStarted
Status[TestSemanticListGeneration] = TestStatus.NotStarted
Status[TestMOCAResults] = TestStatus.NotStarted
Status[TestGDTResults] = TestStatus.NotStarted
Status[TestGoldStandard] = TestStatus.NotStarted
if doneSetup {
GotoTests.isEnabled = true
} else {
GotoTests.isEnabled = false
}
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}