コード例 #1
0
 //Initializes the interfaces by creating instances
 public SalesController(ICustomerInterface accesslayer, IStockInterface stock)
 {
     this._objCustomer = accesslayer;
     this._objStock    = stock;
 }
コード例 #2
0
 //Initilizes the IStockInterface by creating an instance
 public StockController(IStockInterface accesslayer)
 {
     this._objStock = accesslayer;
 }