private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     this.ReturnValue = null;
 }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     ReturnValue = Resources["NewEmployee"] as Employee;
     this.DialogResult = true;
     this.Close();
 }