private void buttonAddCharacter_Click(object sender, EventArgs e) { var ofd = new OpenFileDialog(); if (ofd.ShowDialog() == DialogResult.OK) { try { var character = _iatAsset.AddCharacter(ofd.FileName); if (character.ErrorOnLoad != null) { MessageBox.Show("Error when loading character '" + character.CharacterName + "': " + character.ErrorOnLoad, Resources.ErrorDialogTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); } _characterSources.DataSource = _iatAsset.GetAllCharacterSources().ToList(); _characterSources.Refresh(); } catch (Exception ex) { MessageBox.Show(ex.Message + "-" + ex.StackTrace, Resources.ErrorDialogTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); } } }