void refreshCategoriesGrid() { bs = ClientCommands.refreshCategories(nameField); dataGridView1.DataSource = bs.DataSource; }
public void refreshCategories() { bs3 = ClientCommands.refreshCategories(nameField); comboBox1.DataSource = comboBox2.DataSource = bs3.DataSource; comboBox1.DisplayMember = comboBox2.DisplayMember = nameField; }