Esempio n. 1
0
        public void Check(I18N i18n)
        {
            string nowString = System.DateTime.Now.ToString("hh:mm");
            string report    = "";

            for (int i = 0; i < mReminders.Count; i++)
            {
                clsReminderEntry r = (clsReminderEntry)mReminders[i];
                if (r.fired != nowString) // Also okay for r.fired = ""
                {
                    if (r.when == nowString)
                    {
                        report += r.reminder + "\n";
                        r.fired = nowString;
                    }
                }
            }
            if (report.Length > 0)
            {
                frmReminder rem = new frmReminder();
                i18n.DoForm(rem);
                rem.reminderText = report;
                rem.Show();
            }
        }