/// <summary>
 /// The condition is valid. In addition to clearing the error provider on the 
 /// form, this also clears the error from the parent.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void selectedConditionsControl1_Condition_Valid(object sender, ValidationEventArgs e)
 {
     if (m_errorProvider == null)
     {
         m_errorProvider = new PolicyDesignerErrorProvider(ParentForm as MDIChildForm, errorProvider1);
     }
     m_errorProvider.SetError(selectedConditionsControl1, string.Empty);
 }
        /// <summary>
        /// Something invalid has been entered for the condition. In addition to
        /// setting the error provider on the form, this also adds the error to
        /// the control's parent so that the parent can maintain a list of all 
        /// outstanding errors with the policy set.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void selectedConditionsControl1_Condition_Invalid(object sender, ValidationEventArgs e)
        {
            if (m_errorProvider == null)
            {
                m_errorProvider = new PolicyDesignerErrorProvider(ParentForm as MDIChildForm, errorProvider1);
            }

            StringBuilder errorMessages = new StringBuilder();
            foreach (string errorMessage in e.ErrorMessages)
            {
                errorMessages.AppendLine(errorMessage);
            }
            m_errorProvider.SetError(selectedConditionsControl1, errorMessages.ToString());
        }