コード例 #1
0
        //-------------------------------------------------------------
        private void RefreshGestionnaire()
        {
            CGestionnaireUnites.Refresh();
            CTreeViewNodeKeeper keeper = new CTreeViewNodeKeeper(m_arbreUnits);

            Init();
            keeper.Apply(m_arbreUnits.Nodes);
        }
 //------------------------------------------------------
 public static void Autoexec()
 {
     if (!m_bIsInit)
     {
         m_bIsInit = true;
         CGestionnaireUnites.OnInitGestionnaireUnites += new EventHandler(OnInitGestionnaireUnites);
         CSessionClient.AfterOpenSession += new SessionEventHandler(CSessionClient_AfterOpenSession);
         CGestionnaireUnites.Refresh();
     }
 }
コード例 #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);
        }
 //------------------------------------------------------
 public static void  recepteur_OnReceiveNotification(IDonneeNotification donnee)
 {
     CGestionnaireUnites.Refresh();
 }