示例#1
0
        void AJobAdmin_Deleteed(object sender, EventArgs e)
        {
            AJobAdmin uc  = sender as AJobAdmin;
            PlanItem  job = uc.Job;

            fPanel.Controls.Remove(uc);
            Job.Job.Remove(job);
        }
示例#2
0
        void AddJob(PlanItem job)
        {
            AJobAdmin AJobAdmin = new AJobAdmin(job, Client);

            AJobAdmin.Edited  += AJobAdmin_Edited;
            AJobAdmin.Deleted += AJobAdmin_Deleteed;

            fPanel.Controls.Add(AJobAdmin);
        }