示例#1
0
 public static MenuManager getInstance()
 {
     if (instance != null)
         return instance;
     else
     {
         instance = new MenuManager();
         return instance;
     }
 }
示例#2
0
 static MenuManager()
 {
     instance = new MenuManager();
     getInstance();
 }