Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CodeReorganizationManager" /> class.
        /// </summary>
        /// <param name="package">The hosting package.</param>
        private CodeReorganizationManager(CodeMaidPackage package)
        {
            _package = package;

            _codeModelManager = CodeModelManager.GetInstance(_package);

            _codeReorganizationAvailabilityLogic = CodeReorganizationAvailabilityLogic.GetInstance(_package);
            _generateRegionLogic         = GenerateRegionLogic.GetInstance(_package);
            _insertBlankLinePaddingLogic = InsertBlankLinePaddingLogic.GetInstance(_package);
            _removeRegionLogic           = RemoveRegionLogic.GetInstance(_package);
        }
 /// <summary>
 /// Gets an instance of the <see cref="CodeReorganizationAvailabilityLogic"/> class.
 /// </summary>
 /// <param name="package">The hosting package.</param>
 /// <returns>An instance of the <see cref="CodeReorganizationAvailabilityLogic"/> class.</returns>
 internal static CodeReorganizationAvailabilityLogic GetInstance(CodeMaidPackage package)
 {
     return(_instance ?? (_instance = new CodeReorganizationAvailabilityLogic(package)));
 }