Example #1
0
        private void PendingTasks_TaskChanged(MindMate.Model.MapNode node, Model.PendingTaskEventArgs args)
        {
            taskPlugin.PluginManager.RescheduleTask(reminder, DateTime.Now);

            TaskReminderDialog dialog = GetOpenDialog(node);
            if (dialog == null) return;
            dialog.Close();
        }
Example #2
0
        private void Reminder_TaskDue(MindMate.Model.MapNode node, ReminderType reminderType)
        {
            if(reminderType == ReminderType.Final)
            {
                TaskReminderDialog dialog = GetOpenDialog(node);
                if (dialog != null)
                    dialog.Close();
            }

            TaskReminderDialog dlg = new TaskReminderDialog(node, reminderType);
            dlg.Left = Screen.PrimaryScreen.Bounds.Width - 50 - dlg.Width;
            dlg.Top = Screen.PrimaryScreen.Bounds.Height - 100 - dlg.Height;
            dlg.TaskViewEvent += taskPlugin.OnTaskViewEvent;
            openDialogs.Add(dlg);
            dlg.FormClosing += Dlg_FormClosing;
            dlg.Show();
        }