private void frmoc_category_to_store_Load(object sender, EventArgs e) { ctx = new Model1Entities(); ctx.oc_category_to_store.Load(); BindingList <oc_category_to_store> _entities = ctx.oc_category_to_store.Local.ToBindingList(); oc_category_to_storeBindingSource.DataSource = _entities; this.category_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_category_to_storeBindingSource, "category_id", true)); this.store_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_category_to_storeBindingSource, "store_id", true)); }
private void frmoc_url_alias_Load(object sender, EventArgs e) { ctx = new Model1Entities(); ctx.oc_url_alias.Load(); BindingList <oc_url_alias> _entities = ctx.oc_url_alias.Local.ToBindingList(); oc_url_aliasBindingSource.DataSource = _entities; this.url_alias_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_url_aliasBindingSource, "url_alias_id", true)); this.queryTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_url_aliasBindingSource, "query", true)); this.keywordTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_url_aliasBindingSource, "keyword", true)); }
private void frmoc_order_history_Load(object sender, EventArgs e) { ctx = new Model1Entities(); ctx.oc_order_history.Load(); BindingList <oc_order_history> _entities = ctx.oc_order_history.Local.ToBindingList(); oc_order_historyBindingSource.DataSource = _entities; this.order_history_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_historyBindingSource, "order_history_id", true)); this.order_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_historyBindingSource, "order_id", true)); this.order_status_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_historyBindingSource, "order_status_id", true)); this.notifyCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.oc_order_historyBindingSource, "notify", true)); this.commentTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_historyBindingSource, "comment", true)); this.date_added_dateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_historyBindingSource, "date_added", true)); }
private void frmoc_category_description_Load(object sender, EventArgs e) { ctx = new Model1Entities(); ctx.oc_category_description.Load(); BindingList <oc_category_description> _entities = ctx.oc_category_description.Local.ToBindingList(); oc_category_descriptionBindingSource.DataSource = _entities; this.category_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_category_descriptionBindingSource, "category_id", true)); this.language_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_category_descriptionBindingSource, "language_id", true)); this.nameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_category_descriptionBindingSource, "name", true)); this.descriptionTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_category_descriptionBindingSource, "description", true)); this.meta_descriptionTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_category_descriptionBindingSource, "meta_description", true)); this.meta_keywordTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_category_descriptionBindingSource, "meta_keyword", true)); }
private void frmoc_order_total_Load(object sender, EventArgs e) { ctx = new Model1Entities(); ctx.oc_order_total.Load(); BindingList <oc_order_total> _entities = ctx.oc_order_total.Local.ToBindingList(); oc_order_totalBindingSource.DataSource = _entities; this.order_total_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_totalBindingSource, "order_total_id", true)); this.order_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_totalBindingSource, "order_id", true)); this.codeTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_totalBindingSource, "code", true)); this.titleTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_totalBindingSource, "title", true)); this.textTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_totalBindingSource, "text", true)); this.valueTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_totalBindingSource, "value", true)); this.sort_orderTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_totalBindingSource, "sort_order", true)); }
private void frmoc_product_special_Load(object sender, EventArgs e) { ctx = new Model1Entities(); ctx.oc_product_special.Load(); BindingList <oc_product_special> _entities = ctx.oc_product_special.Local.ToBindingList(); oc_product_specialBindingSource.DataSource = _entities; this.product_special_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_product_specialBindingSource, "product_special_id", true)); this.product_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_product_specialBindingSource, "product_id", true)); this.customer_group_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_product_specialBindingSource, "customer_group_id", true)); this.priorityTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_product_specialBindingSource, "priority", true)); this.priceTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_product_specialBindingSource, "price", true)); this.date_start_dateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_product_specialBindingSource, "date_start", true)); this.date_end_dateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_product_specialBindingSource, "date_end", true)); }
private void actualizarOrden_Click(object sender, EventArgs e) { var model = new Model1Entities(); try { var orderid = int.Parse(ao_orderId.Text); var status = int.Parse(ao_status.Text); model.ActualizarOrden(orderid, status, ao_comentario.Text); MessageBox.Show("Hecho"); } catch (Exception ex) { MessageBox.Show("Error: " + ex.Message); } }
private void agregarImagenProd_Click(object sender, EventArgs e) { var model = new Model1Entities(); try { var prodid = int.Parse(agip_idprod.Text); var orden = int.Parse(agip_orden.Text); model.AgregarImagenProd(prodid, agip_imagen.Text, orden); MessageBox.Show("Hecho"); } catch (Exception ex) { MessageBox.Show("Error: " + ex.Message); } }
private void button2_Click(object sender, EventArgs e) { var model = new Model1Entities(); try { var prodid = int.Parse(agpc_idprod.Text); var categid = int.Parse(agpc_idcateg.Text); model.AgregarProdCateg(prodid, categid); MessageBox.Show("Hecho"); } catch (Exception ex) { MessageBox.Show("Error: " + ex.Message); } }
private void button1_Click(object sender, EventArgs e) { var model = new Model1Entities(); try { var prodid = int.Parse(textBox1.Text); var stock = int.Parse(textBox2.Text); model.SetStock(prodid, stock); MessageBox.Show("Hecho"); } catch (Exception ex) { MessageBox.Show("Error: " + ex.Message); } }
private void agregarCateg_Click(object sender, EventArgs e) { var model = new Model1Entities(); try { var categid = int.Parse(agc_idcateg.Text); var categidpadre = int.Parse(agc_idcategpadre.Text); model.AgregarCategoria(categid, categidpadre, agc_nombre.Text, agc_desc.Text, agc_metadesc.Text, agc_metakeys.Text, agc_imagen.Text); MessageBox.Show("Hecho"); } catch (Exception ex) { MessageBox.Show("Error: " + ex.Message); } }
private void frmoc_order_product_Load(object sender, EventArgs e) { ctx = new Model1Entities(); ctx.oc_order_product.Load(); BindingList <oc_order_product> _entities = ctx.oc_order_product.Local.ToBindingList(); oc_order_productBindingSource.DataSource = _entities; this.order_product_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_productBindingSource, "order_product_id", true)); this.order_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_productBindingSource, "order_id", true)); this.product_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_productBindingSource, "product_id", true)); this.nameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_productBindingSource, "name", true)); this.modelTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_productBindingSource, "model", true)); this.quantityTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_productBindingSource, "quantity", true)); this.priceTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_productBindingSource, "price", true)); this.totalTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_productBindingSource, "total", true)); this.taxTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_productBindingSource, "tax", true)); this.rewardTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_order_productBindingSource, "reward", true)); }
private void agregarProductos_Click(object sender, EventArgs e) { var model = new Model1Entities(); string file = openFileDialog1.FileName; try { string text = File.ReadAllText(file); var lineas = text.Split('\n'); foreach (var linea in lineas.Skip(1)) { var campos = csvParser(linea); var x = campos; model.AgregarProducto(campos.ToArray()); } } catch (Exception ex) { MessageBox.Show("Error: " + ex.Message); } }
private void frmoc_product_Load(object sender, EventArgs e) { ctx = new Model1Entities(); ctx.oc_product.Load(); BindingList <oc_product> _entities = ctx.oc_product.Local.ToBindingList(); oc_productBindingSource.DataSource = _entities; this.product_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "product_id", true)); this.modelTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "model", true)); this.skuTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "sku", true)); this.upcTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "upc", true)); this.eanTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "ean", true)); this.janTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "jan", true)); this.isbnTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "isbn", true)); this.mpnTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "mpn", true)); this.locationTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "location", true)); this.quantityTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "quantity", true)); this.stock_status_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "stock_status_id", true)); this.imageTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "image", true)); this.manufacturer_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "manufacturer_id", true)); this.shippingCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.oc_productBindingSource, "shipping", true)); this.priceTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "price", true)); this.pointsTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "points", true)); this.tax_class_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "tax_class_id", true)); this.date_available_dateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "date_available", true)); this.weightTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "weight", true)); this.weight_class_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "weight_class_id", true)); this.lengthTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "length", true)); this.widthTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "width", true)); this.heightTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "height", true)); this.length_class_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "length_class_id", true)); this.subtractCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.oc_productBindingSource, "subtract", true)); this.minimumTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "minimum", true)); this.sort_orderTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "sort_order", true)); this.statusCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.oc_productBindingSource, "status", true)); this.date_added_dateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "date_added", true)); this.date_modified_dateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "date_modified", true)); this.viewedTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "viewed", true)); this.quantity_setTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_productBindingSource, "quantity_set", true)); }
private void frmoc_category_Load(object sender, EventArgs e) { ctx = new Model1Entities(); try { ctx.oc_category.Load(); } catch (Exception ex) { var x = ex; } BindingList <oc_category> _entities = ctx.oc_category.Local.ToBindingList(); oc_categoryBindingSource.DataSource = _entities; this.category_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_categoryBindingSource, "category_id", true)); this.imageTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_categoryBindingSource, "image", true)); this.parent_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_categoryBindingSource, "parent_id", true)); this.topCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.oc_categoryBindingSource, "top", true)); this.columnTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_categoryBindingSource, "column", true)); this.sort_orderTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_categoryBindingSource, "sort_order", true)); this.statusCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.oc_categoryBindingSource, "status", true)); this.date_added_dateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_categoryBindingSource, "date_added", true)); this.date_modified_dateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_categoryBindingSource, "date_modified", true)); }
private void frmoc_order_Load(object sender, EventArgs e) { ctx = new Model1Entities(); ctx.oc_order.Load(); BindingList <oc_order> _entities = ctx.oc_order.Local.ToBindingList(); oc_orderBindingSource.DataSource = _entities; this.order_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "order_id", true)); this.invoice_noTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "invoice_no", true)); this.invoice_prefixTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "invoice_prefix", true)); this.store_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "store_id", true)); this.store_nameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "store_name", true)); this.store_urlTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "store_url", true)); this.customer_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "customer_id", true)); this.customer_group_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "customer_group_id", true)); this.firstnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "firstname", true)); this.lastnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "lastname", true)); this.emailTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "email", true)); this.telephoneTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "telephone", true)); this.faxTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "fax", true)); this.payment_firstnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_firstname", true)); this.payment_lastnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_lastname", true)); this.payment_companyTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_company", true)); this.payment_company_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_company_id", true)); this.payment_tax_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_tax_id", true)); this.payment_address_1TextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_address_1", true)); this.payment_address_2TextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_address_2", true)); this.payment_cityTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_city", true)); this.payment_postcodeTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_postcode", true)); this.payment_countryTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_country", true)); this.payment_country_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_country_id", true)); this.payment_zoneTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_zone", true)); this.payment_zone_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_zone_id", true)); this.payment_address_formatTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_address_format", true)); this.payment_methodTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_method", true)); this.payment_codeTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "payment_code", true)); this.shipping_firstnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_firstname", true)); this.shipping_lastnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_lastname", true)); this.shipping_companyTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_company", true)); this.shipping_address_1TextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_address_1", true)); this.shipping_address_2TextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_address_2", true)); this.shipping_cityTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_city", true)); this.shipping_postcodeTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_postcode", true)); this.shipping_countryTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_country", true)); this.shipping_country_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_country_id", true)); this.shipping_zoneTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_zone", true)); this.shipping_zone_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_zone_id", true)); this.shipping_address_formatTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_address_format", true)); this.shipping_methodTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_method", true)); this.shipping_codeTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "shipping_code", true)); this.commentTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "comment", true)); this.totalTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "total", true)); this.order_status_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "order_status_id", true)); this.affiliate_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "affiliate_id", true)); this.commissionTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "commission", true)); this.language_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "language_id", true)); this.currency_idTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "currency_id", true)); this.currency_codeTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "currency_code", true)); this.currency_valueTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "currency_value", true)); this.ipTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "ip", true)); this.forwarded_ipTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "forwarded_ip", true)); this.user_agentTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "user_agent", true)); this.accept_languageTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "accept_language", true)); this.date_added_dateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "date_added", true)); this.date_modified_dateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.oc_orderBindingSource, "date_modified", true)); }