예제 #1
0
 public ProductSetCreditState(string[] command, bool canBeBoughtOnCredit, IBarcodeCLI barcodeCli,
                              IBarcodeSystem barcodeSystem) : base(command, barcodeCli, barcodeSystem)
 {
     credit = canBeBoughtOnCredit;
 }
예제 #2
0
 public ProductSetActiveState(string[] command, bool isActive, IBarcodeCLI barcodeCli,
                              IBarcodeSystem barcodeSystem) : base(command, barcodeCli, barcodeSystem)
 {
     active = isActive;
 }
예제 #3
0
 public AddCreditToUser(string[] command, IBarcodeCLI barcodeCli, IBarcodeSystem barcodeSystem) : base(command)
 {
     this.barcodeCli    = barcodeCli;
     this.barcodeSystem = barcodeSystem;
 }
예제 #4
0
 public UndoCommand(string[] command, List <ICommand> commandsExecuted, IBarcodeCLI barcodeCli) : base(command)
 {
     this.commandsExecuted = commandsExecuted;
     this.barcodeCli       = barcodeCli;
 }
예제 #5
0
 public CloseCommand(IBarcodeCLI barcodeCli)
 {
     this.barcodeCli = barcodeCli;
     Succeeded       = true;
 }
예제 #6
0
 public DisplayCommandLogCommand(List <ICommand> commandsEntered, IBarcodeCLI barcodeCli)
 {
     this.commandsEntered = commandsEntered;
     this.barcodeCli      = barcodeCli;
 }
예제 #7
0
 public DisplayAllProductsCommand(string[] command, IBarcodeCLI barcodeCli, IBarcodeSystem barcodeSystem)
     : base(command)
 {
     this.barcodeCli    = barcodeCli;
     this.barcodeSystem = barcodeSystem;
 }
예제 #8
0
 public BarcodeSystem(ILog log, IBarcodeCLI barcodeCli)
 {
     this.log                    = log;
     this.barcodeCli             = barcodeCli;
     Transaction.LogTransaction += this.log.AddLogEntry;
 }
예제 #9
0
 protected ProductSetCommand(string[] command, IBarcodeCLI barcodeCli, IBarcodeSystem barcodeSystem) :
     base(command)
 {
     this.barcodeCli    = barcodeCli;
     this.barcodeSystem = barcodeSystem;
 }
예제 #10
0
 public DisplayUserInfoCommand(string[] command, IBarcodeCLI barcodeCli, IBarcodeSystem barcodeSystem) :
     base(command)
 {
     this.barcodeCli    = barcodeCli;
     this.barcodeSystem = barcodeSystem;
 }
예제 #11
0
 public BuyProductCommand(string[] command, IBarcodeCLI barcodeCli, IBarcodeSystem barcodeSystem) : base(command)
 {
     this.barcodeCli    = barcodeCli;
     this.barcodeSystem = barcodeSystem;
 }