private void OnApplicationQuit()
 {
     if (GenClass != null)
     {
         GenClass.OnApplicationQuit();
     }
 }