Exemplo n.º 1
0
        /// <summary>
        /// Click on a Reminder, go open it.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void tsmi_Click(object sender, EventArgs e)
        {
            clsReminderEntry re = (clsReminderEntry)(((ToolStripMenuItem)sender).Tag);
            frmSchedule      fs = new frmSchedule();

            this._I18N.DoForm(fs);
            fs.NewReminder = re;
            fs.ShowDialog(this);
            this.Focus();
            if (fs.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                mReminders.DeleteReminder(re);
                // Delete or edit?
                if (fs.DeleteReminder)
                {
                    // Don't add in again.
                }
                else
                {
                    // Add amended version in again.
                    mReminders.AddReminder(fs.NewReminder);
                }
                DisplayReminders();
            }
        }
Exemplo n.º 2
0
        private void addReminderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSchedule fs = new frmSchedule();

            this._I18N.DoForm(fs);
            fs.Is24HourClock = mnuOptions24hour.Checked;
            fs.ShowDialog(this);
            if (fs.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                mReminders.AddReminder(fs.NewReminder);
                DisplayReminders();
            }
            fs.Close();
        }