Пример #1
0
 //-------------------------------------------------------------
 private void m_lnkAddUnite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (CFormEditeUniteInDb.EditeUnite(null))
     {
         RefreshGestionnaire();
     }
 }
Пример #2
0
        //--------------------------------------------------------------
        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);
        }