Beispiel #1
0
        private void WorkFollowDeleteButton_Click(object sender, EventArgs e)
        {
            Delete(Convert.ToInt32(this.ID.Text));
            TaskForm taskForm = this.WorkFollowDeleteButton.Parent.Parent.Parent as TaskForm;

            taskForm.tableWorkFollow.Controls.Remove(this.ID);
            taskForm.tableWorkFollow.Controls.Remove(this.Date);
            taskForm.tableWorkFollow.Controls.Remove(this.Status);
            taskForm.tableWorkFollow.Controls.Remove(this.Work);
            taskForm.tableWorkFollow.Controls.Remove(this.Comment);
            taskForm.tableWorkFollow.Controls.Remove(this.WorkFollowDeleteButton);
            taskForm.task.workFollows.Remove(this);
            taskForm.workFollowTableRowSort();
            System.Threading.Thread.Sleep(1000);
        }