//-------------------------------------------------------------
 private void m_lnkAddUnite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (CFormEditeUniteInDb.EditeUnite(null))
     {
         RefreshGestionnaire();
     }
 }
        //--------------------------------------------------------------
        private void m_lnkModifierUnite_LinkClicked(object sender, EventArgs e)
        {
            CUniteInDb unite = m_objetEdite as CUniteInDb;

            if (unite != null)
            {
                if (CFormEditeUniteInDb.EditeUnite(unite))
                {
                    RefreshGestionnaire();
                }
            }
        }
示例#3
0
        //--------------------------------------------------------------
        public static bool EditeUnite(CUniteInDb unite)
        {
            CFormEditeUniteInDb form = new CFormEditeUniteInDb();

            form.m_unite = unite;
            bool bResult = false;

            if (form.ShowDialog() == DialogResult.OK)
            {
                bResult = true;
                CGestionnaireUnites.Refresh();
            }
            form.Dispose();
            return(bResult);
        }