protected bool make(DocumentsMakerSingle.KeyPressedData keyPressedData, FormatOptionForLanguageCSharp formatOptions)
 {
     if (formatOptions.whenTypeSemicolon &&
         keyPressedData.key.CompareTo(";") == 0)
     {
         return(makeSemicolon(keyPressedData.textSelection));
     }
     if (formatOptions.whenTypeBracketClose &&
         keyPressedData.key.CompareTo("}") == 0)
     {
         return(makeBracketClose(keyPressedData.textSelection));
     }
     return(true);
 }
        public bool make(DocumentsMakerSingle.KeyPressedData keyPressedData)
        {
            if (!validate(keyPressedData.textSelection.Parent.Parent.FullName))
            {
                return(false);
            }

            if (m_options.general.formatOptionsForC.isValid(keyPressedData.textSelection.Parent.Language, keyPressedData.key))
            {
                return(make(keyPressedData, m_options.general.formatOptionsForC));
            }
            if (m_options.general.formatOptionsForCSharp.isValid(keyPressedData.textSelection.Parent.Language, keyPressedData.key))
            {
                return(make(keyPressedData, m_options.general.formatOptionsForCSharp));
            }

            return(true);
        }