private void edit() { Form_Edit formEdit = new Form_Edit(); UC_AddTask editTask = new UC_AddTask(task); editTask.Width = formEdit.Width; editTask.Anchor = (AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right); formEdit.Controls.Add(editTask); formEdit.Show(); }
private void remove() { task.EndDate = DateTime.Now; Form_Edit formEdit = new Form_Edit(); UC_AddComment addComment = new UC_AddComment(task); addComment.Width = formEdit.Width; addComment.Anchor = (AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right); formEdit.Controls.Add(addComment); formEdit.Show(); }