Exemplo n.º 1
0
 public TaskNotification(Task tasktonotify, TaskControler taskControler)
 {
     InitializeComponent();
     taskToNotify       = tasktonotify;
     this.taskControler = taskControler;
     LoadTask();
 }
Exemplo n.º 2
0
        public NewTaskForm(TaskControler controler)
        {
            InitializeComponent();
            taskControler = controler;

            usualRdbtn.Checked = true;
        }
Exemplo n.º 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,
        }
Exemplo n.º 4
0
 public NewTaskForm(TaskControler controler, DateTime date, string text) : this(controler, date)
 {
     reminderBox.Text = text;
 }
Exemplo n.º 5
0
 public NewTaskForm(TaskControler controler, DateTime date) : this(controler)
 {
     taskDate = date;
 }
Exemplo n.º 6
0
 public NewTaskForm(TaskControler controler)
 {
     InitializeComponent();
     taskControler = controler;
 }
Exemplo n.º 7
0
 public NewTaskForm(TaskControler controler, DateTime date) : this(controler)
 {
     datePck.Value       = date;
     remindTimePck.Value = date;
 }