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