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

            if (title.Length > 0)
            {
                Task editedTask = new Task()
                {
                    TaskId        = task.TaskId,
                    Title         = title,
                    Description   = textBoxDesc.Text.Trim(),
                    ScheduledDate = task.ScheduledDate
                };

                taskController.EditTask(editedTask);
                this.Dispose();
            }
        }