public async Task EditParticle(ParticleViewModel particleViewModel)
 {
     if (await ShowParticleDialog(particleViewModel))
     {
         Save();
     }
 }
        private async Task <bool> ShowParticleDialog(ParticleViewModel particleViewModel)
        {
            object result = await _dialogService.ShowDialogAt <ParticleDialogViewModel>("BrushSettingsDialog", new Dictionary <string, object> {
                { "particleViewModel", particleViewModel }
            });

            if (result is bool booleanResult)
            {
                return(booleanResult);
            }
            return(false);
        }
 public void RemoveParticle(ParticleViewModel particleViewModel)
 {
     Properties.ParticleConfigurations.CurrentValue.Remove(particleViewModel.ParticleConfiguration);
     ParticleViewModels.Remove(particleViewModel);
     Save();
 }