Subversion Repositories group.electronics

Rev

Rev 171 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 171 Rev 172
Line 19... Line 19...
19
        public int id { get; set; }
19
        public int id { get; set; }
20
        public String name { get; set; }
20
        public String name { get; set; }
21
        public String serialno { get; set; }
21
        public String serialno { get; set; }
22
 
22
 
23
        public List<Control> controls = new List<Control>();
23
        public List<Control> controls = new List<Control>();
-
 
24
        public List<Led> leds = new List<Led>();
24
 
25
 
25
        private Boolean enabled;
26
        private Boolean enabled;
26
        public Boolean Enabled {
27
        public Boolean Enabled {
27
            get {
28
            get {
28
                return enabled;
29
                return enabled;
Line 46... Line 47...
46
            return 1;
47
            return 1;
47
        }
48
        }
48
        public abstract int Refresh();
49
        public abstract int Refresh();
49
        public abstract int Input();
50
        public abstract int Input();
50
 
51
 
-
 
52
        public void addLed(Led led) {
-
 
53
            this.leds.Add(led);
-
 
54
        }
-
 
55
 
51
        public void addControl(Control control) {
56
        public void addControl(Control control) {
52
            this.controls.Add(control);
57
            this.controls.Add(control);
53
        }
58
        }
54
    }
59
    }
55
}
60
}