Пример #1
0
 public PropertiesPluginKinect()
 {
     if (m_refInstance == null)
     {
         m_refInstance = this;
         InitializeProperties();
     }
     else
     {
        Console.WriteLine("PropertiesPluginKinect already instantiate");
     }
 }
Пример #2
0
 /// <summary>
 /// Dispose this instance.
 /// </summary>
 public void Dispose()
 {
     if (m_refInstance != null)
     {
         lock (m_refInstance)
         {
             m_refInstance = null;
         }
     }
 }