void aJob_Deleteed(object sender, EventArgs e) { AJob uc = sender as AJob; Dulieu job = uc.Job; fPanel.Controls.Remove(uc); Job.Job.Remove(job); }
void AddJob(Dulieu job) { AJob aJob = new AJob(job); aJob.Edited += aJob_Edited; aJob.Deleted += aJob_Deleteed; fPanel.Controls.Add(aJob); }