Ejemplo n.º 1
0
        public Settings()
        {
            InitializeComponent();
            FillAccents();
            FillLanguages();

            if (GlobalConsts.Theme.Name == "BaseDark")
            {
                NightModeCheckBox.IsChecked = true;
            }
            CheckForUpdatesCheckBox.IsChecked     = GlobalConsts.CheckForProgramUpdates;
            SaveDirectoryTextBox.Text             = GlobalConsts.SaveDirectory;
            SaveDownloadOptionsCheckBox.IsChecked = GlobalConsts.SaveDownloadOptions;
            LimitConvertionsCheckBox.IsChecked    = GlobalConsts.LimitConvertions;
            ActualConvertionTextBox.Text          = GlobalConsts.ActualConvertionsLimit.ToString();
            ActualConvertionTextBox.TextChanged  += ActualConvertionTextBox_TextChanged;

            NightModeCheckBox.Checked   += NightModeCheckBox_Checked;
            NightModeCheckBox.Unchecked += NightModeCheckBox_Unchecked;

            GlobalConsts.HideSettingsButton();
            GlobalConsts.ShowHomeButton();
            GlobalConsts.ShowAboutButton();
            GlobalConsts.ShowHelpButton();
            GlobalConsts.ShowSubscriptionsButton();
        }