private void CWndFor2iTextBoxFiltreRapide_ElementSelectionneChanged(object sender, EventArgs e) { C2iWndTextBoxFiltreRapide txt = WndAssociee as C2iWndTextBoxFiltreRapide; if (txt != null && txt.AutoSetValue) { MajChamps(false); } if (m_grid != null) { m_grid.NotifyCurrentCellDirty(true); } CUtilControlesWnd.DeclencheEvenement(C2iWndTextBoxFiltreRapide.c_strIdEvenementValueChanged, this); }
//--------------------------------------------------------------- protected override void MyAppliqueRestriction( CRestrictionUtilisateurSurType restrictionSurObjetEdite, CListeRestrictionsUtilisateurSurType listeRestrictions, IGestionnaireReadOnlySysteme gestionnaireReadOnly) { if (EditedElement != null && m_selectionneur != null) { ERestriction rest = restrictionSurObjetEdite.RestrictionGlobale; C2iWndTextBoxFiltreRapide wndTxt = WndAssociee as C2iWndTextBoxFiltreRapide; if (wndTxt != null) { CDefinitionProprieteDynamique def = wndTxt.Property; if (def != null) { rest = def.GetRestrictionAAppliquer(restrictionSurObjetEdite); } } if ((rest & ERestriction.ReadOnly) == ERestriction.ReadOnly) { gestionnaireReadOnly.SetReadOnly(m_selectionneur, true); } } }