Esempio n. 1
0
 public void MenuItemCommand(string menuName)
 {
     if (menuName == "openSln")
     {
         string filePath = IOFile.OpenSlnFile();
         openSln(filePath);
     }
     else if (menuName == "newSln")
     {
         createProject();
     }
     else if (menuName == "GL4RS" && Config.RenderSystemType != E3DEngine.RenderSystemType.OPENGL)
     {
         Config.WriteConfig(CONST_STRING.Config_renderSystemType, E3DEngine.RenderSystemType.OPENGL.ToString());
         restartApp();
     }
     else if (menuName == "ES2RS" && Config.RenderSystemType != E3DEngine.RenderSystemType.OPENGLES)
     {
         Config.WriteConfig(CONST_STRING.Config_renderSystemType, E3DEngine.RenderSystemType.OPENGLES.ToString());
         restartApp();
     }
 }