public void VB6_AddADODataBinding() { dcProducts.Refresh(); Check1.DataBindings.Add("Checked", dcProducts, "Discontinued", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_1.DataBindings.Add("Text", dcProducts, "ProductName", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_2.DataBindings.Add("Text", dcProducts, "ProductDescription", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_3.DataBindings.Add("Text", dcProducts, "SerialNumber", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_4.DataBindings.Add("Text", dcProducts, "UnitPrice", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); txtCategory.DataBindings.Add("Text", dcProducts, "CategoryID", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_5.DataBindings.Add("Text", dcProducts, "QuantityPerUnit", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_0.DataBindings.Add("Text", dcProducts, "ProductID", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_6.DataBindings.Add("Text", dcProducts, "Unit", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); }
public void VB6_AddADODataBinding() { dcProviders.Refresh(); _txtField_9.DataBindings.Add("Text", dcProviders, "Extension", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_14.DataBindings.Add("Text", dcProviders, "Notes", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_10.DataBindings.Add("Text", dcProviders, "FaxNumber", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_8.DataBindings.Add("Text", dcProviders, "PhoneNumber", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_12.DataBindings.Add("Text", dcProviders, "ContactFirstName", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_13.DataBindings.Add("Text", dcProviders, "ContactLastName", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_11.DataBindings.Add("Text", dcProviders, "ContactTitle", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_5.DataBindings.Add("Text", dcProviders, "City", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_2.DataBindings.Add("Text", dcProviders, "EmailAddress", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_7.DataBindings.Add("Text", dcProviders, "Country/Region", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_6.DataBindings.Add("Text", dcProviders, "StateOrProvince", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_0.DataBindings.Add("Text", dcProviders, "ProviderName", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_4.DataBindings.Add("Text", dcProviders, "PostalCode", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); _txtField_1.DataBindings.Add("Text", dcProviders, "PaymentTerms", false, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged); }