Example #1
0
        private void TaskEditForm_Load(object sender, EventArgs e)
        {
            MainForm mainForm = this.MdiParent as MainForm;

            _user = mainForm.GetUser();

            if (_taskID > 0)
            {
                _taskBuss = new TaskBusiness(_user);
                _task     = _taskBuss.Get(_taskID);

                lblID.Text          = _taskID.ToString();
                txtDescription.Text = _task.Description;
            }
            FillComboBoxes();
        }
Example #2
0
 public TaskEditForm(int projectId)
 {
     InitializeComponent();
     this._projectId = projectId;
     _task           = new Entity.Task();
 }