예제 #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            GraphicsPreferences preferences = new GraphicsPreferences();

            preferences.Owner = this;

            preferences.xMin          = xMin;
            preferences.xMax          = xMax;
            preferences.yMin          = yMin;
            preferences.yMax          = yMax;
            preferences.markIntervale = markIntervale;
            preferences.color         = backgroundColor;

            var current = this.Background;

            this.Background = new SolidColorBrush(Colors.LightGray);
            this.Effect     = new BlurEffect();

            if ((bool)preferences.ShowDialog())
            {
                xMin            = preferences.xMin;
                xMax            = preferences.xMax;
                yMin            = preferences.yMin;
                yMax            = preferences.yMax;
                markIntervale   = preferences.markIntervale;
                backgroundColor = preferences.color;
                Refresh();
            }

            this.Effect     = null;
            this.Background = current;
        }
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            GraphicsPreferences preferences = new GraphicsPreferences();
            preferences.Owner = this;

            preferences.xMin = xMin;
            preferences.xMax = xMax;
            preferences.yMin = yMin;
            preferences.yMax = yMax;
            preferences.markIntervale = markIntervale;
            preferences.color = backgroundColor;

            var current = this.Background;
            this.Background = new SolidColorBrush(Colors.LightGray);
            this.Effect = new BlurEffect();

            if ((bool)preferences.ShowDialog())
            {
                xMin = preferences.xMin;
                xMax = preferences.xMax;
                yMin = preferences.yMin;
                yMax = preferences.yMax;
                markIntervale = preferences.markIntervale;
                backgroundColor = preferences.color;
                Refresh();
            }

            this.Effect = null;
            this.Background = current;
        }