private void newCollection()
{
if (collectionDirty)
{
if (MessageBox.Show("Your Creature Collection has been modified since it was last saved, are you sure you want to discard your changes and quit without saving?", "Discard Changes?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.No)
return;
}
if (creatureCollection.multipliers == null)
creatureCollection.multipliers = Values.V.statMultipliers;
// use previously used multipliers again in the new file
double[][] oldMultipliers = creatureCollection.multipliers;
creatureCollection = new CreatureCollection();
creatureCollection.multipliers = oldMultipliers;
pedigree1.Clear();
breedingPlan1.Clear();
applyMultipliersToValues();
assignCollectionClasses();
updateCreatureListings();
creatureBoxListView.Clear();
Properties.Settings.Default.LastSaveFile = "";
currentFileName = "";
fileSync.changeFile(currentFileName);
setCollectionChanged(false);
}