FarPoint.PluginCalendar.WinForms Internal use only. Interface supporting notification of the year changed. Creates a new year changed notification. Object New year number Previous year number Internal use only. Interface supporting notification of the month changed. Creates a new month changed notification. Object New month number Previous month number Internal use only. Interface supporting notification of the year changing. Creates a new year changing notification. Object New year number Previous year number Internal use only. Interface supporting notification of the month changing. Creates a new month changing notification. Object New month number Previous month number Specifies the styles to apply to the header. (Default) Displays a button on either side of the header to allow scrolling Displays a single button that allows the user to select from a list Does not display a button Specifies the locations for docking the weekday display. (Default) Displays the weekdays at the top of the control Displays the weekdays at the bottom of the control Does not display the weekdays Specifies the locations for docking the specified header. (Default) Docks the header at the top of the control Docks the header at the bottom of the control Docks the header to the left of the control Docks the header to the right of the control Hides the header Specifies the order and placement of a single-line header. (Default) Does not display the headers on a single line Displays the headers on a single line at the top of the control, with the month appearing first Displays the headers on a single line at the bottom of the control, with the month appearing first Displays the headers on a single line at the top of the control, with the year appearing first Displays the headers on a single line at the bottom of the control, with the year appearing first Represents the FarPoint calendar control, which lets the user display or select date values. Required designer variable. Creates a new calendar control. Creates a new calendar control with the option of showing the year. Year shown Creates a new calendar control as a copy of another. Object from which to clone Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Cleans up any resources being used. Gets an instance of a recurring date element. Recurring date as a string, for example, "0827" Adds a recurring date element to the collection. Date that occurs once a year, as a string (for example, "0827") Removes a recurring date element from the collection. Recurring date as a string, for example, "0827" Gets an instance of a specific date element. Date that occurs only once (not recurring), as a string (for example, "20020827") Adds a specific date element to the collection. Date that occurs only once (not recurring), as a string (for example, "20020827") Removes a specific date element from the collection. Specific date as a string, for example, "20020827" Gets the day element based on the index. Index of the day element (between 1 and 31 inclusive) Gets the day element based on the index. Index of the day element, as a string (between "1" and "31" inclusive) Gets the month element for the control. Gets the year element for the control. Gets the weekdays element for the control. Gets the style that determines how selected elements are represented. Gets the ElementStyle object that determines how selected days are represented. Indicates whether the color of the days surrounding the current calendar should be persisted. Resets the color of the days surrounding the current calendar to its default value. Resets the default font of the calendar elements to initial value. Resets the default text color of the calendar elements to initial value. Resets the default back color of the calendar elements to initial value. Resets the first day of the week to its default value. Resets the day names to their default values. Determines whether day names should be serialized. Boolean: true if it should be serialized; false otherwise Gets the day names. Gets the day name at the specified index. Index for the day name (between 0 and 6 inclusive) Resets the month names to their default values. Determines whether month names should be serialized. Boolean: true if it should be serialized; false otherwise Gets the month names. Gets the month name at the specified index. Index for the month name (between 0 and 11 inclusive) Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Gets whether the specified day on the calendar is selected. Integer number for day on the calendar Gets whether the specified day on the calendar is selected. DayElement object containing the day to check Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Select a specific date in the control. Date to select in the control based on a DateTime structure Value that determines if selection occurs (true to select or false to deselect) Select a specific date in the control. Date to select in the control based on its visiblity Value that determines if selection occurs (true to select or false to deselect) Internal use only. Processes VisibleChanged events that occur in days. Object that sent event Event arguments Processes the specified dialog key by the control. Key for the control to process true if the key was processed by the control; false otherwise Internal use only. Internal use only. Internal use only. Processes DoubleClick events that occur in the generic mouse event router. Object that raised the event Event arguments Processes Click events that occur in generic mouse event router. Object that raised the event Event arguments Processes MouseUp events that occur in generic mouse event router. Object that raised the event Event arguments Processes MouseDown events that occur in generic mouse event router. Object that raised the event Event arguments Processes FontChanged events that occur in year header. Object that raised the event Event arguments Processes FontChanged events that occur in month header. Object that raised the event Event arguments Processes FontChanged events that occur in weekdays header. Object that raised the event Event arguments Processes Focus events that occur in days. Object that raised the event Event arguments Processes the Click event. Event arguments Internal use only. Internal use only. Used internally by the control when the year is changing YearElement object Newly selected year Previously selected year Used internally by the control when the month is changing Calendar object Newly selected month Previously selected month Used internally by the control when the month has changed. Calendar object Newly selected month Previously selected month Used internally by the control when the year has changed. Calendar object Newly selected year Previously selected year Notifies one of the control's Elements collection is being added to or removed from. Collection that notifies Element that was added/removed Occurs when one of the element's state has changed. Element whose state has changed Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Occurs when a day is selected in the control. Occurs when the year in the control is changing. Occurs when the month in the control is changing. Occurs when the year in the control has changed. Occurs when the month in the control has changed. Gets a collection of selected dates. Gets or sets a collection of calendar elements. Gets all day elements in the collection. Gets all recurring date elements in the collection. Gets all specific dates in the collection. Gets all elements in the collection. Gets or sets the border for the different elements in the control. Gets whether it contains focus. Gets or sets the style for the month header. Gets or sets the style for the year header. Gets or sets whether the days surrounding the current calendar are visible. Gets or sets the color of the days surrounding the current calendar. Internal use only. Internal use only. Gets or sets the default font of the calendar elements. Gets or sets the default back color of the calendar elements. Gets or sets the default text color of the calendar elements. Gets or sets the default header height for month, year, and weekday headers. Gets or sets the month header height. Gets or sets the year header height. Gets or sets the weekday header height. Gets or sets whether the user can select more than one date in the control. Gets or sets the month displayed in the control. Internal use only. Gets or sets the year displayed in the control. Internal use only. Gets or sets whether the text appears from right to left in the edit control (as when using Hebrew or Arabic fonts). Internal use only. Gets or sets the position of the month header in the control. Gets or sets the position of the year header in the control. Gets or sets the position and style of a single line header in the control. Gets or sets the position of the weekdays in the control. Gets or the sets the maximum date for the control. Gets or the sets the minimum date for the control. Gets or sets the current selected date for the control. Gets or sets the day used as the first day of the week. Gets the month for the last selected date in the control. Gets the day for the last selected date in the control. Gets the year for the last selected date in the control. Gets the weekday for the last selected date in the control. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Gets or sets alternate day names for the control. Gets or sets alternate month names for the control. Internal use only. Internal use only. Mouse down processing. Mouse up processing. Click processing. DoubleClick processing. Enumerators for the type of element to retrieve from the Elements collection. Class that creates a collection representing the calendar elements. Creates a collection representing the calendar elements. Finds an element in the collection that matches the specified name. Year of the element sought Month of the element sought Day of the element sought Adds a calendar element to the collection and returns its index. Element to add to the collection Whether to clone this element from the instance of another Exposes the enumerator, which supports a simple iteration over a collection. Exposes the enumerator, which supports a simple iteration over a collection. Exposes the enumerator, which supports a simple iteration over a collection. Exposes the enumerator, which supports a simple iteration over a collection. Exposes the enumerator, which supports a simple iteration over a collection. ====================================================================================================== Internal use only. Internal use only. Enumerated day Internal use only. Recurring days Internal use only. Specific days Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. ========================================================================================== Represents a recurring date element, which can be used to modify a date that recurs once a year in a FarPoint calendar control. Represents a day element, which can be used to modify a day that occurs in a FarPoint calendar control. Creates a new day element. Resets the background color of the element to its default value. Resets the text color of the element to its default value. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Gets or sets the background color for the element. Gets or sets the text color for the element. Creates a new recurring date element. Date designated to recur Creates a cloned recurring date element. Recurring date element from which to clone the new element Internal use only. Gets whether the recurring date is visible. Gets the name of the recurring date element. Gets the recurring date value of the element. Gets the month for the recurring date value. Gets the day for the recurring date value. ========================================================================================== Represents a specific date element, which can be used to modify a date that occurs once in time in a FarPoint calendar control. Creates a new specific date element. Creates a cloned specific date element. Object from which to clone the new date element Internal use only. Gets whether a specific date element is visible. Gets the name of the specific date element. Gets the specific date of the element as a DateTime object. Gets the year of the specific date elelment. Gets the month of the specific date element. Gets the day of the specific date element. Represents a year element, which can be used to modify a year in a FarPoint calendar control. Creates a new year element. The year of the current Year Element. Year Creates a new year element by cloning another. Object from which to clone Internal use only. Gets the style for the drop-down items for the element. Resets the background color of the element to its default value. Resets the text color of the element to its default value. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Processes doubleclick events that occur in the drop-down button as two click events. Processes mouse down events that occur in a drop-down button. Processes click events that occur in the drop-down button. Processes doubleclick events that occur in scroll buttons as two click events. Internal use only. Internal use only. Processes click events that occur in scroll buttons. Internal use only. Internal use only. Internal use only. Adds notification of the month change. Target Internal use only. Internal use only. Internal use only. Internal use only. Gets or sets the text for the element. Gets or sets the year value for the control. Internal use only. Gets or sets the button style for the element. Gets or sets the background color of the element. Gets or sets the text color of the element. Internal use only. Internal use only. Internal use only. Handles the year changing event. Year element Year number Previous year number Internal use only. Handles the year changed event. ========================================================================================== Represents a month element that allows the user to modify the months in a FarPoint calendar control. Creates a new month element. Creates a new month element. Numerical value of the month Text for the month Creates a clone from a month element. Object from which to clone the new element Internal use only. Internal use only. Gets the month name for a Month Element. Integer value corresponding to the month (1-12) Sets the month name for a Month Element. Integer value corresponding to the month (1-12) String value for the name of the month Gets the style for drop-down items for the element. Resets the background color of the element to its default value. Resets the text color of the element to its default value. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Processes doubleclick events that occur in the drop-down button as two click events. Processes mouse down events that occur in a drop-down button. Processes click events that occur in a drop-down button. Processes doubleclick events that occur in scroll buttons as two click events. Internal use only. Internal use only. Processes mousedown events that occur in scroll buttons. Internal use only. Adds notification of the month change. Target Notification of month changed. Notification to remove month changing. Notification to remove month changed. Notification to fire month changing. Notification to fire month changed. Gets or sets the month for an Month Element. Internal use only. Gets or sets the text for a Month Element. Gets or sets the button style for the element. Gets or sets the background color of the element. Gets or sets the text color of the element. Internal use only. Internal use only. Internal use only. Handles the month changing event. Month element Month number Previous month number Internal use only. Handles the month changed event. Month element Month number Previous month number Represents a weekday element, which can be used to modify the weekdays in a FarPoint calendar control. Creates a new weekday element. Creates a new weekday element. String designating the days Creates a cloned weekday element. Object from which to create the new element Resets the background color of the element to its default value. Resets the text color of the element to its default value. Resets the first day of the week to its default value. Internal use only. Internal use only. Internal use only. Internal use only. Gets or sets the font for the element. Gets or sets the background color of the element. Gets or sets the text color of the element. Gets or sets the day used as the first day of the week. Specifies the type of hands to display in an FpClock control. Uses standard hour, minute, and second hands Uses custom hour, minute, and second hands as determined by the GraphicsPath and PointF classes Uses circles as the hour, minute, and second hands Uses arrows as the hour, minute, and second hands Uses diamonds as the hour, minute, and second hands Uses an elaborate design for the hour, minute, and second hands Specifies the type of clock to display in a FarPoint clock control. (0) Displays clock with the standard settings as specified in the Windows Control Panel Displays clock with LCD-type digits Displays clock as a traditional analog clock face with hour, minute, and second hands Specifies the way that user interaction moves the clock hands in a FarPoint clock control. (Default)Does not move the clock hands when the user clicks on them with the mouse Moves clock hands when the user clicks on them with the left mouse button down Moves clock hands when the user clicks on them with the right mouse button down Moves clock hands when the user clicks on them with the middle mouse button down Specifies the type of mode to use in a FarPoint clock control. (0) Uses the regional settings in the Windows Control Panel Calculates the time as a 12-hour clock Calculates the time as a 24-hour clock Supports time from 0 to 99 hours Specifies the number and type of numerals to display in an analog FarPoint clock control. (Default) Does not display numerals in the analog clock face Displays the Arabic numerals 1,2,3,...,12 in the analog clock face Displays the Arabic numerals 3,6,9,12 in the analog clock face Displays the Roman numerals I,II,III,...,XII in the analog clock face Displays the Roman numerals III,VI,IX,XII in the analog clock face Specifies the direction of light cast (and thus how shadow appears) in an analog FarPoint clock control. Light source appears to come from the upper left; shadows display below and to the right of the clock hands Light source appears to come from the upper right; shadows display below and to the left of the clock hands Light source appears to come from the lower right; shadows display above and to the left of the clock hands Light source appears to come from the lower left; shadows display above and to the right of the clock hands The main class for the FpClock control, which lets the user display and manipulate time values. Represents a FarPoint clock control that displays a customizable clock interface and allows time value selections. Creates a new FarPoint clock control with the option of whether to automatically start the timer. Whether to automatically start the timer Creates a new FarPoint clock control. Creates a new FarPoint clock control with the specified clock style. Specified clock style (how the clock is displayed) Internal use only. Resets the border for the control to its default settings. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Gets the current font used in the control. Indicates whether the HourHandFillColor property should be persisted. Resets the HourHandFillColor property to its default value. Indicates whether the MinuteHandFillColor property should be persisted. Resets the MinuteHandFillColor property to its default value. Indicates whether the SecondHandFillColor property should be persisted. Resets the SecondHandFillColor property to its default value. Indicates whether the HourHandOutlineColor property should be persisted. Resets the HourHandOutlineColor property to its default value. Indicates whether the MinuteHandOutlineColor property should be persisted. Resets the MinuteHandOutlineColor property to its default value. Indicates whether the SecondHandOutlineColor property should be persisted. Resets the SecondHandOutlineColor property to its default value. Determines whether the hand shadow color should be serialized. Boolean: true if it should be serialized; false otherwise Resets the HandShadowColor property to its default value. Indicates whether the TickFillColor property should be persisted. Resets the TickFillColor property to its default value. Indicates whether the TickShadowColor property should be persisted. Resets the TickShadowColor property to its default value. Clears the alarm set for the control. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Raises the Alarm event. Event arguments Raises the TimeChanged event. Event arguments Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Occurs when the time in the control changes. Occurs when an alarm goes off in the control. Gets or sets the region of the control if the AnalogFaceOnly property is set to True. Gets or sets the type of hands to display for an analog control. Gets or sets the interval between timer events and clock time updates. Gets or sets whether the area of the control outside the analog face is transparent. Gets or sets the GraphicsPath used to construct a custom hour hand for the control. Gets or sets the GraphicsPath used to construct a custom minute hand for the control. Gets or sets the GraphicsPath used to construct a custom second hand for the control. Gets or sets the border for the control. Gets or sets the number of pixels to offset the drop shadows displayed for the clock hands on an analog control. Gets or sets whether the user can change the time on an analog clock by dragging and dropping the hands. Gets or sets whether the tick marks on an analog clock face are filled (solid). Gets or sets whether an analog clock face displays hour tick marks. Gets or sets whether an analog clock face displays minute tick marks. Gets or sets whether the time value in a default or digital control displays a leading zero. Gets or sets whether the drop shadows displayed for the hands on an analog control are filled (solid). Gets or sets the color to used to fill the hour hand. Gets or sets the color used to fill the minute hand. Gets or sets the color used to fill the second hand. Gets or sets the color used to outline the hour hand in the control. Gets or sets the color used to outline the minute hand in the control. Gets or sets the color used to outline the second hand in the control. Gets or sets whether the hour hand is filled (solid) in the control. Gets or sets whether the minute hand is filled (solid) in the control. Gets or sets whether the second hand is filled (solid) in the control. Gets or sets the color of the drop shadows displayed for the hands on an analog control. Gets or sets the fill color of the tick marks on an analog control face. Gets or sets the shadow color of the tick marks on an analog control face. Gets or sets whether an analog control face displays Roman numerals, Arabic numerals, or no numerals. Internal use only. Gets or sets whether the text appears from right to left in the edit control (as when using Hebrew or Arabic fonts). Gets or sets whether the control can receive focus and respond to user actions. Gets or sets the alarm time in the control. Gets or sets the current time in the control. Gets or sets the start time in the control. Gets the difference between the start time and the current time in the control. Gets or sets the hour portion of the time value in the control. Gets or sets the minute portion of the time value in the control. Gets or sets the second portion of the time value in the control. Gets or sets the millisecond portion of the time value in the control. Gets or sets the position of the hand shadow in the control. Gets or sets whether the seconds portion of the time value is displayed or, in an analog clock, if the second hand is displayed. Gets or sets whether the clock automatically starts when it is created. Gets or sets whether to append the AM or PM characters to the end of the value in the control. Gets or sets whether the user can press the Tab key to move focus to the control. Internal use only. Gets or sets the style of clock to use. Gets or sets whether the control keeps time as a 12-hour clock, a 24-hour clock, or a stopwatch. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Internal use only. Gets or sets the offset between the bottom of the control and its clock face. Internal use only. Gets or sets the offset between the top of the control and its clock face. Internal use only. Gets or sets the offset between the left of the control and its clock face. Internal use only. Gets or sets the offset between the right of the control and its clock face. Internal use only. Represents the event data for the day-selected event. Occurs when the currently selected day changes in the control. Returns the selected date Returns the previously selected date private void control_DaySelected(object sender, FarPoint.Win.Input.DaySelectedEventArgs e) { textBox1.Text = Convert.ToString(e.SelectedDate); textBox2.Text = Convert.ToString(e.PreviousDate); } Private Sub control_DaySelected(ByVal sender As Object, ByVal e As FarPoint.Win.Input.DaySelectedEventArgs) Handles control.DaySelected TextBox1.Text = e.SelectedDate TextBox2.Text = e.PreviousDate End Sub Gets the selected day in the control as a DateTime object. Gets the previously selected day in the control as a DateTime object. Gets or sets whether to cancel the event and the selection. The delegate that refers to an instance of the DaySelectedEventArgs class. Represents a defined method that handles the DaySelected event. Represents the event data for the year-changing event. Occurs when the current year is changing in the control. Returns the new year Returns the previous year private void control_YearChanging(object sender, FarPoint.Win.Input.YearChangingEventArgs e) { textBox1.Text = Convert.ToString(e.PreviousYear); textBox2.Text = Convert.ToString(e.NewYear); } Private Sub control_YearChanging(ByVal sender As Object, ByVal e As FarPoint.Win.Input.YearChangingEventArgs) Handles control.YearChanging TextBox1.Text = e.PreviousYear TextBox2.Text = e.NewYear End Sub Gets the new year when an action causes the year to change. Gets the previous year when an action causes the year to change. Gets or sets whether to cancel the event and leave the year unchanged. The delegate that refers to an instance of the YearChangingEventArgs class. Represents the method that handles the YearChanging event. Represents the event data for the year-changed event. Occurs when the current year changes in the control. Returns the new year Returns the previous year private void control_YearChanged(object sender, FarPoint.Win.Input.YearChangedEventArgs e) { textBox1.Text = Convert.ToString(e.PreviousYear); textBox2.Text = Convert.ToString(e.NewYear); } Private Sub control_YearChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Input.YearChangedEventArgs) Handles control.YearChanging TextBox1.Text = e.PreviousYear TextBox2.Text = e.NewYear End Sub Gets the new year when an action causes the year to change. Gets the previous year when an action causes the year to change. The delegate that refers to an instance of the YearChangedEventArgs class. Represents the method that handles the YearChanged event. Represents the event data for the month-changing event. Occurs when the current month is changing in the control. New month Previous month New year Previous year private void control_MonthChanging(object sender, FarPoint.Win.Input.MonthChangingEventArgs e) { textBox1.Text = e.NewMonth.ToString(); textBox2.Text = e.PreviousMonth.ToString(); } Private Sub control_MonthChanging(ByVal sender As Object, ByVal e As FarPoint.Win.Input.MonthChangingEventArgs) Handles control.MonthChanging TextBox1.Text = e.NewMonth TextBox2.Text = e.PreviousMonth End Sub Gets the new month when an action causes the month to change. Gets the previous month when an action causes the month to change. Gets the new year when an action causes the month to change. Gets the previous year when an action causes the month to change. Gets or sets whether to cancel the event and leave the month unchanged. The delegate that refers to an instance of the MonthChangingEventArg class. Represents the method that handles the MonthChanging event. Represents the event data for the month-changed event. Occurs when the current month changes in the control. Returns the new month Returns the previous month private void control_MonthChanged(object sender, FarPoint.Win.Input.MonthChangedEventArgs e) { textBox1.Text = e.NewMonth.ToString(); textBox2.Text = e.PreviousMonth.ToString(); } Private Sub control_MonthChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Input.MonthChangedEventArgs) Handles control.MonthChanging TextBox1.Text = e.NewMonth TextBox2.Text = e.PreviousMonth End Sub Gets the new month when an action causes the month to change. Gets the previous month when an action causes the month to change. The delegate that refers to an instance of the MonthChangedEventArgs class. Represents the method that handles the MonthChanged event. Represents the event data for the time-changed event. Occurs when the current time changes in the control. /// private void control_TimeChanged(object sender, FarPoint.Win.Input.TimeChangedEventArgs e) { textBox1.Text = e.Time.ToString(); } Private Sub control_TimeChanged(ByVal sender As System.Object, ByVal e As FarPoint.Win.Input.TimeChangedEventArgs) Handles control.TimeChanged TextBox1.Text = e.Time End Sub Returns the current time value in the control Gets the current time in the control when an action causes the time to change. Gets the current time (converted to a long time string) in the control when an action causes the time to change. Gets the current hour in the control when an action causes the time to change. Gets the current minute in the control when an action causes the time to change. Gets the current second in the control when an action causes the time to change. Gets the current millisecond in the control when an action causes the time to change. Gets or sets whether to cancel the event and leave the time unchanged. The delegate that refers to an instance of the TimeChangedEventArgs class. Represents the method that handles the TimeChanged event. Represents the event data for the alarm event. Occurs when the value of the CurrentTime property equals the value of the AlarmTime property. private void Form1_Load(object sender, System.EventArgs e) { control.AlarmTime = control.CurrentTime.AddSeconds(10); } private void control_Alarm(object sender, FarPoint.Win.Input.AlarmEventArgs e) { MessageBox.Show("Alarm"); } Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load control.AlarmTime = control.CurrentTime.AddSeconds(10) End Sub Private Sub control_Alarm(ByVal sender As System.Object, ByVal e As FarPoint.Win.Input.AlarmEventArgs) Handles control.Alarm MessageBox.Show("Alarm") End Sub Returns the value of the AlarmTime Gets the alarm time set for the control. Gets the alarm time(converted to long time string) set for the control. Gets the hour portion of the alarm time set for the control. Gets the minute portion of the alarm time set for the control. Gets the second portion of the alarm time set for the control. Gets the millisecond portion of the alarm time set for the control. Gets or sets whether to cancel the event and not trigger the alarm. The delegate that refers to an instance of the AlarmEventArgs class. Represents the method that handles the FpClock Alarm event.