Esempio n. 1
0
 private bool CreateNewCollection()
 {
     if (mNewCollectionName.Length > 0)
     {
         if (mAssetManager.AssetTypes.Contains(mNewCollectionName))
         {
             PopDialogCommandsGUI("Create New Collection",
                                  "Another collection with name " + mNewCollectionName + " already exists.",
                                  DIALOG_OK_BTN);
         }
         else
         {
             mAssetManager.AddAssetType(mNewCollectionName);
             mNewCollectionName = "";
             SetupTypes(mSelectedTypeIndex);
             return(true);
         }
     }
     else
     {
         PopDialogCommandsGUI("Create New Collection",
                              "Please provide a name for the new collection.",
                              DIALOG_OK_BTN);
     }
     return(false);
 }