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

            SelectedColor = ConfigHelper.BackgroundColor;

            SelectedColor.PropertyChanged += SelectedColorOnPropertyChanged;


            this.Dispatcher.ShutdownStarted += (sender, args) =>
            {
                if (selectBackround.IsChecked.Value)
                {
                    ConfigHelper.BackgroundColor = SelectedColor;
                }

                if (selectDownload.IsChecked.Value)
                {
                    ConfigHelper.DownloadColor = SelectedColor;
                }

                if (selectUpload.IsChecked.Value)
                {
                    ConfigHelper.UploadColor = SelectedColor;
                }
            };
        }
Ejemplo n.º 2
0
 private void selectUpload_Checked(object sender, RoutedEventArgs e)
 {
     SelectedColor = ConfigHelper.UploadColor;
     SelectedColor.PropertyChanged += SelectedColorOnPropertyChanged;
 }
Ejemplo n.º 3
0
 private void selectUpload_Checked(object sender, RoutedEventArgs e)
 {
     SelectedColor = ConfigHelper.UploadColor;
     SelectedColor.PropertyChanged += SelectedColorOnPropertyChanged;
 }