private void btn_UpdateProcedure_Click(object sender, EventArgs e) { frm_ListOf frm = new frm_ListOf(Subject.ProcedureSbjct); frm.ShowDialog(); if (frm.Tag != null) { Procedure proc = (Procedure)frm.Tag; foreach (Etape etp in Etape.GetByProcedure(proc.getId())) { proc.addEtape(etp); //MessageBox.Show("etp.Objects.count: "+etp.getObjectList().Count,"RenderForm.btn_UpdateProcedure"); } //frm_AddProcedure frmProc = new frm_AddProcedure(proc.getPanne().getTypePanne(), proc.getPanne(), proc, Operation.Update); //frmProc.ShowDialog(); usrProcedure usrproc = new usrProcedure(this, proc.getPanne().getTypePanne(), proc.getPanne(), proc, Operation.Update); usrproc.Location = new Point(5, 115); this.Controls.Add(usrproc); } }