public AdministrationClientForm()
 {
     this.InitializeComponent();
     this.productsBindingSource = new BindingSource();
     this.productCategoriesBindingSource = new BindingSource();
     this.dbConnection = GetConnectionProvider();
     this.dataContext = new ProductsDataRelationDataContext(this.dbConnection);
     this.productsBindingSource.DataSource = this.dataContext.Products;
     this.productCategoriesBindingSource.DataSource = this.dataContext.ProductCategories;
 }
        // ==================================================

        #region constructors

        public AdministrationClientForm()
        {
            this.InitializeComponent();
            this.productsBindingSource          = new BindingSource();
            this.productCategoriesBindingSource = new BindingSource();
            this.dbConnection = GetConnectionProvider();
            this.dataContext  = new ProductsDataRelationDataContext(this.dbConnection);
            this.productsBindingSource.DataSource          = this.dataContext.Products;
            this.productCategoriesBindingSource.DataSource = this.dataContext.ProductCategories;
        }
 public ThumbnailImageSelectionForm(ProductsDataRelationDataContext dataContext)
 {
     this.InitializeComponent();
     this.thumbnailImagesBindingSource.DataSource = dataContext.ProductImageThumbnails;
     this.thumbnailImagesTableDataGridView.DataSource = this.thumbnailImagesBindingSource;
 }
Example #4
0
 public ThumbnailImageSelectionForm(ProductsDataRelationDataContext dataContext)
 {
     this.InitializeComponent();
     this.thumbnailImagesBindingSource.DataSource     = dataContext.ProductImageThumbnails;
     this.thumbnailImagesTableDataGridView.DataSource = this.thumbnailImagesBindingSource;
 }