コード例 #1
0
        private void skipToNextDateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BLIO.Log("Toolstrip option clicked: Skip (" + rem.Id + ")");
            //The reminder object has now been altered. The first date has been removed and has been "skipped" to it's next date
            BLReminder.SkipToNextReminderDate(rem);
            //push the altered reminder to the database
            BLReminder.EditReminder(rem);

            //Refresh to show changes
            UCReminders.Instance.UpdateCurrentPage();

            new Thread(() =>
            {
                //Log an entry to the database, for data!
                try
                {
                    BLOnlineDatabase.SkipCount++;
                }
                catch (ArgumentException ex)
                {
                    BLIO.Log("Exception at BLOnlineDatabase.SkipCount++. -> " + ex.Message);
                    BLIO.WriteError(ex, ex.Message, true);
                }
            }).Start();
        }
コード例 #2
0
        private void skipToNextDateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BLIO.Log("Skipping reminder with id " + rem.Id + " to its next date");
            //The reminder object has now been altered. The first date has been removed and has been "skipped" to it's next date
            BLReminder.SkipToNextReminderDate(rem);
            //push the altered reminder to the database
            BLReminder.EditReminder(rem);

            //Refresh to show changes
            UCReminders.GetInstance().UpdateCurrentPage();
        }
コード例 #3
0
 private void lblSkip_Click(object sender, EventArgs e)
 {
     //The reminder object has now been altered. The first date has been removed and has been "skipped" to it's next date
     BLReminder.SkipToNextReminderDate(theReminder);
     BLIO.Log("Skipped reminder with id " + theReminder.Id + " to it's next date from the RemindMe message form");
     //push the altered reminder to the database
     BLReminder.EditReminder(theReminder);
     BLIO.Log("Edited reminder with id " + theReminder.Id);
     //Show the change in RemindMe's main listview
     UCReminders.GetInstance().UpdateCurrentPage();
     //Finally, close this message
     this.Dispose();
 }