void TvstorefalseAfterSelect(object sender, TreeViewEventArgs e) { TreeView tn = (TreeView)sender; StoreC stc = new StoreC(); _sr.Store_id = stc.GetStoreId(tn.SelectedNode.Text); }
private void cbplace_SelectedIndexChanged(object sender, EventArgs e) { orderBy.Text = "Default"; if (cbplace.Text.Equals("ALL")) { orderBy.Enabled = false; _query = finalquery; getAll(""); } else { orderBy.Enabled = true; StoreC stc = new StoreC(); _query = "store_id= " + stc.GetStoreId(cbplace.Text); getAll(""); } }
int GetStoreId(string str) { StoreC stores = new StoreC(); return(stores.GetStoreId(str)); }