示例#1
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();
        }