예제 #1
0
 public static CSG Instance() 
 {
     if (m_instance == null) 
     {
         m_instance = new CSG();
     }
     return m_instance;
 }
예제 #2
0
 public static CSG Instance()
 {
     if (m_instance == null)
     {
         m_instance = new CSG();
     }
     return(m_instance);
 }
예제 #3
0
 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);
     }
 }