示例#1
0
            // Method for ringing alarm that will make a new alarm window which rings and has the option
            // To dismiss and to snooze
            // w - the window that calls the ringAlarm function
            // a - the alarmFunction associated with the ringing
            public void ringAlarm(Window w, alarmObject a)
            {
                // Create a new AlarmWindow that is
                var alarmWindow = new AlarmWindow();

                // Get the proper title and description
                alarmWindow.title.Text       = a.alarmID;
                alarmWindow.description.Text = a.alarmDescription;
                alarmWindow.Show();
                // Play a simple ringtone sound

                // Open the window that called the ringAlarm function
            }
 public editSnoozeTime()
 {
     InitializeComponent();
     alarmWindowObject = new AlarmWindow();
 }