Beispiel #1
0
 public CashDesk(int number, Seller seller, CrmContext db)
 {
     Number  = number;
     Seller  = seller;
     Queue   = new Queue <Cart>();
     IsModel = true;
     this.db = db ?? new CrmContext();
 }
Beispiel #2
0
 public CashDesk(int number, Seller seller, CrmContext context)
 {
     Number         = number;
     Seller         = seller;
     Queue          = new Queue <Cart>();
     IsModel        = true;
     MaxQueueLenght = 10;
     this.context   = context ?? new CrmContext();
 }
Beispiel #3
0
 public CashDesk(int number, Seller seller, CrmContext db, int maxQueueLenght = 10)
 {
     Number         = number;
     Seller         = seller ?? throw new ArgumentNullException(nameof(seller));
     Queue          = new Queue <Cart>();
     IsModel        = true;
     MaxQueueLenght = maxQueueLenght;
     _db            = db ?? new CrmContext();
 }
        public CashDesk(int number, Seller seller, CrmContext dbContext)
        {
            this.dbContext = dbContext ?? new CrmContext();

            Queue          = new Queue <Cart>();
            Number         = number;
            Seller         = seller;
            IsModel        = true;
            MaxQueueLength = 10;
        }
Beispiel #5
0
        public CashDesk(int number, Seller seller, CrmContext db)
        {
            Number         = number;
            Seller         = seller;
            Queue          = new Queue <Cart>();
            isModel        = true;
            MaxQueueLenght = 10;

            _dbContext = db ?? new CrmContext();
        }
Beispiel #6
0
 public Main()
 {
     InitializeComponent();
     db = new CrmBL.Model.CrmContext();
 }