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(); }
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(); } }