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 PendingTasks_TaskTextChanged(MapNode node, TaskTextEventArgs e)
        {
            TaskReminderDialog dialog = GetOpenDialog(node);

            if (dialog == null)
            {
                return;
            }

            if (e.ChangeType == TaskTextChange.TextChange)
            {
                dialog.TaskView.TaskTitle = node.Text;
            }
            else if (e.ChangeType == TaskTextChange.AncestorTextChange)
            {
                dialog.TaskView.RefreshTaskPath();
            }
        }
Example #3
0
        private void PendingTasks_TaskSelectionChanged(MapNode node, TaskSelectionEventArgs e)
        {
            TaskReminderDialog dialog = GetOpenDialog(node);

            if (dialog == null)
            {
                return;
            }

            if (e.ChangeType == TaskSelectionChange.Selected)
            {
                dialog.TaskView.Selected = true;
            }
            else
            {
                dialog.TaskView.Selected = false;
            }
        }
Example #4
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();
        }