Exemplo n.º 1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            if (_model == 0)
            {
                TaskController.AddOrUpdateTask(Task, _frmListTask, _urcTask);
            }
            else
            {
                TaskController.AddOrUpdateTask(Task, _frmInfoProject, _urcTask);
            }

            this.Close();
        }
Exemplo n.º 2
0
        private void cbComplete_CheckedChanged(object sender, EventArgs e)
        {
            if (cbComplete.Checked.ToString() != _task.Status)
            {
                _task.Status    = cbComplete.Checked.ToString();
                _task.Employees = TaskController.GetListEmployee(_task);
                TaskController.AddOrUpdateTask(_task);
            }


            //
            //this.Dispose();
        }