private void Button_Click(object sender, RoutedEventArgs e)
        {
            bool returnValue;

            NewFunction functionWindow = new NewFunction();
            functionWindow.Owner = this;

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

            returnValue = controller.addFunction(functionWindow);

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

            if (returnValue)
                Refresh();
        }
Пример #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            bool returnValue;

            NewFunction functionWindow = new NewFunction();

            functionWindow.Owner = this;

            var current = this.Background;

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

            returnValue = controller.addFunction(functionWindow);

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

            if (returnValue)
            {
                Refresh();
            }
        }