コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SelectCommandHandler"/> class.
 /// </summary>
 /// <param name="service">Input service.</param>
 public SelectCommandHandler(IFileCabinetService service)
     : base(service)
 {
     this.find = new FindRecordInService(service, CommandName, ref this.list);
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateCommandHandler"/> class.
 /// </summary>
 /// <param name="service">Input service.</param>
 public UpdateCommandHandler(IFileCabinetService service)
     : base(service)
 {
     this.find = new FindRecordInService(service, NameCommand, ref this.list);
 }