Exemple #1
0
        public MainForm()
        {
            InitializeComponent();
            tbsDbContext  = new TBSDbContext();
            tbsRepository = new TBSRepository(tbsDbContext);


            this.cbxInputFormat.SelectedIndex = 0;
            this.txtBxSalesDiscPercent.Text   = "0";
            this.txtBxSalesMemFees.Text       = "0";
            LoadBooks();
            books           = this.tbsRepository.GetBooks();
            bookQuantityMap = new Dictionary <Book, int>();
        }
 public TBSRepository(TBSDbContext tbsDbContext)
 {
     this._tbsDbContext = tbsDbContext;
 }
Exemple #3
0
 public WelcomeScreen()
 {
     InitializeComponent();
     tbsDbContext  = new TBSDbContext();
     tbsRepository = new TBSRepository(tbsDbContext);
 }