Ejemplo n.º 1
0
        public GlobalSeedWindow(int minSeed, int maxSeed, int seedValue)
        {
            InitializeComponent();
            Owner = WindowUtils.GetActiveWindow(this);

            _seedControl.MinValue = minSeed;
            _seedControl.MaxValue = maxSeed;
            _seedControl.Value    = seedValue;
        }
Ejemplo n.º 2
0
        public SettingsWindow()
        {
            InitializeComponent();
            Owner = WindowUtils.GetActiveWindow();
            _content.DataContext = Settings.Instance;
            _defaultSettings     = Settings.Instance.ToDictionary();

            _backgroundPicker.SelectedColor = Settings.Instance.Background.Color;
            _titlePicker.SelectedColor      = Settings.Instance.TitleForeground.Color;
            _foregroundPicker.SelectedColor = Settings.Instance.Foreground.Color;
            _separatorPicker.SelectedColor  = Settings.Instance.Separator.Color;
            _timerPicker.SelectedColor      = Settings.Instance.TimerForeground.Color;
        }