コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpadeContextInsertRegionCommand" /> class.
 /// </summary>
 /// <param name="package">The hosting package.</param>
 internal SpadeContextInsertRegionCommand(CodeMaidPackage package)
     : base(package,
            new CommandID(GuidList.GuidCodeMaidCommandSpadeContextInsertRegion, (int)PkgCmdIDList.CmdIDCodeMaidSpadeContextInsertRegion))
 {
     _generateRegionLogic   = GenerateRegionLogic.GetInstance(package);
     _undoTransactionHelper = new UndoTransactionHelper(package, "CodeMaid Insert Region");
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpadeContextInsertRegionCommand" /> class.
 /// </summary>
 /// <param name="package">The hosting package.</param>
 internal SpadeContextInsertRegionCommand(CodeMaidPackage package)
     : base(package,
            new CommandID(PackageGuids.GuidCodeMaidMenuSet, PackageIds.CmdIDCodeMaidSpadeContextInsertRegion))
 {
     _generateRegionLogic   = GenerateRegionLogic.GetInstance(package);
     _undoTransactionHelper = new UndoTransactionHelper(package, "CodeMaid Insert Region");
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SpadeContextInsertRegionCommand" /> class.
 /// </summary>
 /// <param name="package">The hosting package.</param>
 internal SpadeContextInsertRegionCommand(CodeMaidPackage package)
     : base(package,
            new CommandID(GuidList.GuidCodeMaidCommandSpadeContextInsertRegion, (int)PkgCmdIDList.CmdIDCodeMaidSpadeContextInsertRegion))
 {
     _generateRegionLogic = GenerateRegionLogic.GetInstance(package);
 }