private void btnprintSalSheet_Click(object sender, RoutedEventArgs e) { PrintSalarySheetWindow win = new PrintSalarySheetWindow(); win.ShowDialog(); }