Exemplo n.º 1
0
        private void OnReminderAdded(string reminder)
        {
            ReminderViewer viewer = new ReminderViewer(reminder, this);

            SP_Reminders.Children.Add(viewer);
            Viewers.Add(viewer);
        }
Exemplo n.º 2
0
        private void OnReminderRemoved(string reminder)
        {
            ReminderViewer rvToDelete = Viewers.Find(x => x.Reminder == reminder);

            if (rvToDelete != null)
            {
                SP_Reminders.Children.Remove(rvToDelete);
            }
        }