private void loadCollection(bool add = false)
{
if (!add && collectionDirty)
{
if (MessageBox.Show("Your Creature Collection has been modified since it was last saved, are you sure you want to load without saving first?", "Discard Changes?", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.No)
return;
}
OpenFileDialog dlg = new OpenFileDialog();
dlg.Filter = "Creature Collection File (*.xml)|*.xml";
if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
loadCollectionFile(dlg.FileName, add);
}
}