private void tbtnLoad_Click(object sender, EventArgs e)
{
if (_character.IsDirty)
{
if (DialogResult.Cancel == MessageBox.Show("You have unsaved changes. Are you sure you want to open a different character file?", "Unsaved changes", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning))
{
return;
}
}
using (OpenFileDialog openDialog = new OpenFileDialog())
{
openDialog.Filter = "QFG Export Files (*.sav)|*.sav|All Files (*.*)|*.*";
if (openDialog.ShowDialog() == DialogResult.OK)
{
LoadFile(openDialog.FileName);
}
}
}