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(); }
public TaskEditForm(int projectId) { InitializeComponent(); this._projectId = projectId; _task = new Entity.Task(); }