//Button click executes AddEmployeWindow.
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            AddEmployeWindow window = new AddEmployeWindow();

            window.Show();
            this.Close();
        }
 private void Add_Employe(object sender, RoutedEventArgs e)
 {
     if (OwnerValidation.Validate())
     {
         AddEmployeWindow window = new AddEmployeWindow();
         window.Show();
         Close();
     }
 }