Exemplo n.º 1
0
            public FileAssociations Clone()
            {
                var b = new FileAssociations();

                foreach (var kv in this)
                {
                    b.Add(kv.Key, kv.Value);
                }
                return(b);
            }
Exemplo n.º 2
0
        public SettingsDialogViewModel()
        {
            LanguageNames = LanguageChoices.Select(x => x.TextInfo.ToTitleCase(x.NativeName)).ToList();

            foreach (var extension in Extensions)
            {
                var association = new FileAssociationViewModel(extension);
                association.ValueChanged += (o, e) => SettingsChanged = true;
                FileAssociations.Add(association);
            }

            _language = LoadLanguage();

            Settings.Default.PropertyChanged += SettingsChangedEventHandler;
        }