public void ExportProfile()
{
if (SelectedProfile == null)
return;
var dialog = new SaveFileDialog {Filter = "Artemis profile (*.json)|*.json"};
var result = dialog.ShowDialog();
if (result != DialogResult.OK)
return;
ProfileProvider.ExportProfile(SelectedProfile, dialog.FileName);
}