Esempio n. 1
0
        private void btnAddTask_Click(object sender, EventArgs e)
        {
            string title = textBoxTitle.Text.Trim();

            if (title.Length > 0)
            {
                var  desc = textBoxDesc.Text.Trim();
                Task task = new Task()
                {
                    Title = title, Description = desc, ScheduledDate = selectedDate
                };
                taskController.AddTask(task);
            }
        }