Exemple #1
0
        private void GetPresets(string selectedName = "")
        {
            string[] textPresets = _textImageService.GetTextPresets();

            Presets = new ListCollectionView(textPresets);

            if (!string.IsNullOrWhiteSpace(selectedName))
            {
                Presets.MoveCurrentTo((string)selectedName);
            }

            _eventAgg.GetEvent <PresetWheelsUpdatedEvent>().Publish("");

            Presets.CurrentChanged += Presets_CurrentChanged;
        }
 private void PresetsUpdated(string x)
 {
     Presets = new ListCollectionView(_textImageService.GetTextPresets());
     Presets.CurrentChanged += Presets_CurrentChanged;
 }