Artemis.ViewModels.Profiles.ProfileEditorViewModel.ProfileSaveHandler C# (CSharp) Méthode

ProfileSaveHandler() private méthode

private ProfileSaveHandler ( object sender, System.Timers.ElapsedEventArgs e ) : void
sender object
e System.Timers.ElapsedEventArgs
Résultat void
        private void ProfileSaveHandler(object sender, ElapsedEventArgs e)
        {
            if (_saving || SelectedProfile == null)
                return;

            _saving = true;
            try
            {
                ProfileProvider.AddOrUpdate(SelectedProfile);
            }
            catch (Exception)
            {
                // ignored
            }
            _saving = false;
        }
    }