示例#1
0
 public TaskNotification(Task tasktonotify, TaskControler taskControler)
 {
     InitializeComponent();
     taskToNotify       = tasktonotify;
     this.taskControler = taskControler;
     LoadTask();
 }
示例#2
0
        public NewTaskForm(TaskControler controler)
        {
            InitializeComponent();
            taskControler = controler;

            usualRdbtn.Checked = true;
        }
示例#3
0
        public NewTaskForm(TaskControler controler, Task editTask) : this(controler)
        {
            this.editTask       = editTask;
            remindTextTbx.Text  = editTask.text;
            datePck.Value       = editTask.next_date.Date;
            remindTimePck.Value = editTask.next_date;

            if (editTask.remind_flag)
            {
                remindRdbtn.Checked = true;
                if (editTask.period_min > 0)
                {
                    remindRepeatCkb.Checked = true;

                    if (editTask.period_min % 525600 == 0)
                    {
                        remindTimePeriodType.SelectedIndex = 3;
                        remindPeriodTbx.Text = editTask.period_min / 525600 + "";
                    }
                    else if (editTask.period_min % 1440 == 0)
                    {
                        remindTimePeriodType.SelectedIndex = 2;
                        remindPeriodTbx.Text = editTask.period_min / 1440 + "";
                    }
                    else if (editTask.period_min % 60 == 0)
                    {
                        remindTimePeriodType.SelectedIndex = 1;
                        remindPeriodTbx.Text = editTask.period_min / 60 + "";
                    }
                    else
                    {
                        remindTimePeriodType.SelectedIndex = 0;
                        remindPeriodTbx.Text = editTask.period_min + "";
                    }
                }
            }

            // period_duration,
        }
 public NewTaskForm(TaskControler controler, DateTime date, string text) : this(controler, date)
 {
     reminderBox.Text = text;
 }
 public NewTaskForm(TaskControler controler, DateTime date) : this(controler)
 {
     taskDate = date;
 }
 public NewTaskForm(TaskControler controler)
 {
     InitializeComponent();
     taskControler = controler;
 }
示例#7
0
 public NewTaskForm(TaskControler controler, DateTime date) : this(controler)
 {
     datePck.Value       = date;
     remindTimePck.Value = date;
 }