Esempio n. 1
0
        private void m_btnOk_Click(object sender, EventArgs e)
        {
            m_filtre.ReferenceValue = m_dtPicker.Value;
            CGridFilterDateEntre entre = m_filtre as CGridFilterDateEntre;

            if (entre != null)
            {
                entre.DateFin = m_dtPicker2.Value;
            }
            DialogResult = DialogResult.OK;
            Close();
        }
Esempio n. 2
0
        private void CFormEditFiltreDate_Load(object sender, EventArgs e)
        {
            CWin32Traducteur.Translate(this);
            m_lblTypeFiltre.Text = m_filtre.Label;
            m_dtPicker.Value     = m_filtre.ReferenceValue == null?DateTime.Now:m_filtre.ReferenceValue.Value;
            CGridFilterDateEntre entre = m_filtre as CGridFilterDateEntre;

            m_panelForBetween.Visible = entre != null;
            if (entre != null)
            {
                m_dtPicker2.Value = entre.DateFin == null ? DateTime.Now : entre.DateFin.Value;
            }
            ;
        }