Exemplo n.º 1
0
        private void buttonRemindAgain_Click(object sender, EventArgs e)
        {
            ReminderComboBoxItem cbi = (ReminderComboBoxItem)comboBoxRemindAgain.SelectedItem;

            wishlistItem.Reminder        = DateTime.Now.AddMinutes(cbi.Minutes);
            wishlistItem.AlreadyReminded = false;
            Close();
        }
        private void ComboBoxReminderRelative_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ReminderComboBoxItem cbi = (ReminderComboBoxItem)ComboBoxReminderRelative.SelectedItem;

            TextBoxReminderTime.Text = DateTime.Now.AddMinutes(cbi.Minutes).ToShortTimeString();
        }
Exemplo n.º 3
0
        private void comboBoxReminderRelative_SelectedIndexChanged(object sender, EventArgs e)
        {
            ReminderComboBoxItem cbi = (ReminderComboBoxItem)comboBoxReminderRelative.SelectedItem;

            dateTimePickerReminder.Value = DateTime.Now.AddMinutes(cbi.Minutes);
        }