private void button4_Click(object sender, RoutedEventArgs e) { var aw = new ArchiveWindow(); try { aw.Show(); } // ReSharper disable EmptyGeneralCatchClause catch (Exception) // ReSharper restore EmptyGeneralCatchClause { } }