private void PrintIt_Click(object sender, RoutedEventArgs e) { var jim = new Dim(); jim.Show(); this.Effect = new BlurEffect(); ExeatSlip exeatSlip = new ExeatSlip(); exeatSlip.Show(); this.Effect = null; jim.Close(); }