Esempio n. 1
0
		private void OnElapsing(Reminder rmd, TimeSpan remains)
		{
			if (NotifierMenuItem.Tag == null)
			{
				NotifierMenuItem.Tag = NotifierMenuItem.Text;
			}
			string strRemain = string.Format("{0:D3},{1:D2}:{2:D2}:{3:D2}",
						remains.Days,
						remains.Hours,
						remains.Minutes,
						remains.Seconds);

			NotifierMenuItem.Text = NotifierMenuItem.Tag + " ( " + strRemain + " ) " + rmd.RemindPoint.ToString();
		}
Esempio n. 2
0
		private bool OnRemind(Reminder rmd)
		{
			if (Controller.InvokeRequired)
			{
				Controller.Invoke(new ControllerShowNoteDelegate(Controller.ShowNote), new object[] { this });
			}
			else
			{
				Controller.ShowNote(this);
			}
			return true;
		}