private void ProfileSaveHandler(object sender, ElapsedEventArgs e) { if (_saving || SelectedProfile == null) return; _saving = true; try { ProfileProvider.AddOrUpdate(SelectedProfile); } catch (Exception) { // ignored } _saving = false; } }