Exemple #1
0
 public static CSG Instance() 
 {
     if (m_instance == null) 
     {
         m_instance = new CSG();
     }
     return m_instance;
 }
Exemple #2
0
 public static CSG Instance()
 {
     if (m_instance == null)
     {
         m_instance = new CSG();
     }
     return(m_instance);
 }
 public void CSGEvent(CSG.eCSGEvent ev, string msg, Object3d dat)
 {
     try
     {
         switch (ev)
         {
             case CSG.eCSGEvent.eCompleted:
                 m_engine3d.AddObject(dat);
                 RaiseAppEvent(eAppEvent.eReDraw, "");
                 break;
             case CSG.eCSGEvent.eError:
                 break;
             case CSG.eCSGEvent.eProgress:
                 break;
             case CSG.eCSGEvent.eStarted:
                 break;
         }
     }
     catch (Exception ex)
     {
         DebugLogger.Instance().LogError(ex);
     }
 }
 public void CSGEvent(CSG.eCSGEvent ev, string msg, Object3d dat)
 {
     try
     {
         switch (ev)
         {
             case CSG.eCSGEvent.eCompleted:
                 break;
             case CSG.eCSGEvent.eError:
                 break;
             case CSG.eCSGEvent.eProgress:
                 //tick the progress bar
                 break;
             case CSG.eCSGEvent.eStarted:
                 break;
         }
     }
     catch (Exception ex)
     {
         DebugLogger.Instance().LogError(ex);
     }
 }