Пример #1
0
        void ajob_Deleted(object sender, EventArgs e)
        {
            AJob     uc  = sender as AJob;
            PlanItem job = uc.Job;

            fPanel.Controls.Remove(uc);
            Job.Job.Remove(job);
        }
Пример #2
0
        void AddJob(PlanItem job)
        {
            AJob ajob = new AJob(job);

            ajob.Edited  += ajob_Edited;
            ajob.Deleted += ajob_Deleted;


            fPanel.Controls.Add(ajob);
        }