public static void ModificationDegeler(CGel gel, EventHandler onDegelerEventHandler) { CFormGelerIntervention form = new CFormGelerIntervention(); form.m_handlerOnGeler = onDegelerEventHandler; form.m_gel = gel; form.m_bModeGeler = false; form.m_bModif = true; form.Show(); }
//------------------------------------------- public static void Geler(IElementGelable eltGelable, EventHandler onGelerEventHandler) { CFormGelerIntervention form = new CFormGelerIntervention(); form.m_elementGelable = eltGelable; form.m_handlerOnGeler = onGelerEventHandler; form.m_bModeGeler = true; form.m_bModif = false; form.Show(); }
//------------------------------------------- public static void Degeler(IElementGelable eltGelable, EventHandler onDegelerEventHandler) { CFormGelerIntervention form = new CFormGelerIntervention(); form.m_elementGelable = eltGelable; form.m_gel = (CGel)eltGelable.Gels[eltGelable.Gels.Count - 1]; form.m_handlerOnGeler = onDegelerEventHandler; form.m_bModeGeler = false; form.m_bModif = false; form.Show(); }
//-------------------------------------------------------- private void m_lnkEndDate_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { CFormGelerIntervention.ModificationDegeler((CGel)m_wndListeGels.SelectedItems[0], new EventHandler(OnChangeGel)); }
//-------------------------------------------------------- private void m_lnkDegeler_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { CFormGelerIntervention.Degeler(m_elementGelable, new EventHandler(OnChangeGel)); }