Example #1
0
        void aJob_Deleteed(object sender, EventArgs e)
        {
            AJob     uc  = sender as AJob;
            PlanItem job = uc.Job;

            fPanel.Controls.Remove(uc);
            Job.Job.Remove(job);
        }
Example #2
0
        void AddJob(PlanItem job)
        {
            AJob aJob = new AJob(job);

            aJob.Edited  += aJob_Edited;
            aJob.Deleted += aJob_Deleteed;

            fPanel.Controls.Add(aJob);
        }