public upd_proc() { this.InitializeComponent(); c1 = new DBconnection(); prod_dt = new DataTable(); brand_dt = c1.Select("select * from Brand"); socket_dt = c1.Select("select * from Socket"); for (int i = 0; i < brand_dt.Rows.Count; i++) { brandbox.Items.Add(brand_dt.Rows[i]["BrandName"]); } for (int i = 0; i < socket_dt.Rows.Count; i++) { socketbox.Items.Add(socket_dt.Rows[i]["SocketName"]); } }
public upd_price() { this.InitializeComponent(); c1 = new DBconnection(); }
public accdetails() { this.InitializeComponent(); c1 = new DBconnection(); emailbox.Text = current_session.emailid; }
public product_search() { this.InitializeComponent(); c1 = new DBconnection(); d2 = c1.Select("select * from ProductType"); }
public cart() { this.InitializeComponent(); cart_list.ItemsSource = Cart.cart_collection; c1 = new DBconnection(); }