Ejemplo n.º 1
0
        public SettingsWindow()
        {
            InitializeComponent();

            foreach (var line in BuffType.Deserialize(Settings.Default.Types))
            {
                _buffTypes.Add(line);
            }

            _flashBefore.Text    = Settings.Default.FlashBefore.ToString();
            _listBox.ItemsSource = _buffTypes;
        }
Ejemplo n.º 2
0
 private static IDictionary <string, Buff> GetBuffs()
 {
     return(BuffType.Deserialize(Settings.Default.Types).ToDictionary(bt => bt.ImageUri, bt => new Buff(bt.Duration)));
 }