Subversion Repositories group.electronics

Rev

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

Rev 147 Rev 149
Line 48... Line 48...
48
		/// </summary>
48
		/// </summary>
49
		public Color DarkDarkColor { get; protected set; }
49
		public Color DarkDarkColor { get; protected set; }
50
 
50
 
51
        public bool Flash {
51
        public bool Flash {
52
            get { return _flash.Enabled; }
52
            get { return _flash.Enabled; }
53
            set { _flash.Enabled = true; }
53
            set { _flash.Enabled = value; this.On = value; }
54
        }
54
        }
55
 
55
 
56
		/// <summary>
56
		/// <summary>
57
		/// Gets or Sets whether the light is turned on
57
		/// Gets or Sets whether the light is turned on
58
		/// </summary>
58
		/// </summary>
Line 77... Line 77...
77
				(object sender, EventArgs e) => { this.On = !this.On; }
77
				(object sender, EventArgs e) => { this.On = !this.On; }
78
			);
78
			);
79
 
79
 
80
            _flash.Interval = 500;
80
            _flash.Interval = 500;
81
            _flash.Tick += new EventHandler(
81
            _flash.Tick += new EventHandler(
82
                (object sender, EventArgs e) => { this._flash.Enabled = false; }
82
                (object sender, EventArgs e) => { this._flash.Enabled = false; this.On = false; }
83
            );
83
            );
84
		}
84
		}
85
		
85
		
86
		#endregion
86
		#endregion
87
 
87