private void OKButton_Click(object sender, RoutedEventArgs e)
 {
     if (string.IsNullOrWhiteSpace(ProjectName.Text))
     {
         System.Windows.MessageBox.Show("Please specify a Project Name");
         ProjectName.Focus();
     }
     else if (string.IsNullOrWhiteSpace(FederationName.Text))
     {
         System.Windows.MessageBox.Show("Please specify a Federation Name");
         FederationName.Focus();
     }
     else if (string.IsNullOrWhiteSpace(Location.Text))
     {
         System.Windows.MessageBox.Show("Please specify a Folder Location");
         Location.Focus();
     }
     else if (!Directory.Exists(Location.Text))
     {
         System.Windows.MessageBox.Show("Invalid folder name, please specify a valid one");
         Location.Focus();
     }
     else if (string.IsNullOrWhiteSpace(CreatedPersonTextBox.Text))
     {
         System.Windows.MessageBox.Show("Please specify an Authors Name");
         CreatedPersonTextBox.Focus();
     }
     else if (string.IsNullOrWhiteSpace(CreatedOrgTextBox.Text))
     {
         System.Windows.MessageBox.Show("Please specify an Organisation Name");
         CreatedOrgTextBox.Focus();
     }
     else
     {
         DialogResult = true;
         this.Close();
     }
 }
 private void FederationName_GotFocus(object sender, RoutedEventArgs e)
 {
     FederationName.SelectAll();
 }