private void m_boutonDropList_Click(object sender, System.EventArgs e) { Rectangle rect = this.RectangleToScreen(new Rectangle(0, Height, Width, 230)); bool bCancel = false; CDefinitionProprieteDynamique champ = CFormSelectChampPopup.SelectDefinitionChamp(rect, m_typeInterroge, m_fournisseur, ref bCancel, null, m_definitionRacineDeChamps); if (!bCancel) { DefinitionSelectionnee = champ; } }
/// <summary> /// //////////////////////////////////////////////////////////////////////////// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void m_boutonDropList_Click(object sender, System.EventArgs e) { Rectangle rect = m_panelComboChamp.RectangleToScreen(new Rectangle(0, m_panelComboChamp.Height, m_panelComboChamp.Width, 230)); bool bCancel = false; CDefinitionProprieteDynamique champ = CFormSelectChampPopup.SelectDefinitionChamp(rect, m_filtre.TypeElements, new CFournisseurProprietesForFiltreDynamique(), ref bCancel, null, m_definitionRacineDeChampsFiltres); if (!bCancel) { m_champ = champ; m_labelChamp.Text = m_champ == null?I.T("[UNDEFINED]|30013") : m_champ.Nom; } }
/// <summary> /// //////////////////////////////////////////////////////////////////////////// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void m_boutonChampValeurDropList_Click(object sender, System.EventArgs e) { Rectangle rect = m_panelComboChampValeur.RectangleToScreen(new Rectangle(0, m_panelComboChampValeur.Height, m_panelComboChampValeur.Width, 230)); bool bCancel = false; if (m_sousFiltre.TypeElements == null) { CFormAlerte.Afficher(I.T("Select a sub filter type before|20087"), EFormAlerteBoutons.Ok, EFormAlerteType.Exclamation ); return; } CDefinitionProprieteDynamique champ = CFormSelectChampPopup.SelectDefinitionChamp(rect, m_sousFiltre.TypeElements, new CFournisseurProprietesForFiltreDynamique(), ref bCancel, null, m_definitionRacineDeChampsFiltres); if (!bCancel) { m_champRetourneParRequete = champ; m_labelChampValeur.Text = m_champRetourneParRequete == null?I.T("[UNDEFINED]|30013") : m_champRetourneParRequete.Nom; } }