String. Format ("select * from {0};", this.comboBox1. Text);
// MessageBox. Show (sql); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new MySqlCommandBuilder (da);. Fill (data);. DataSource = data;
} void tabControl1_Selected (object sender, TabControlEventArgs e)
{(e. TabPageIndex)
{1:
{. comboBox1. Text = this.comboBox1. Items [0]. ToString ();
} break; 2:
{
// Clientssql = String. Format ("select * from {0};", "v_shop_ex"); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new MySqlCommandBuilder (da);. Fill (data); _ex. DataSource = data; _ex. Sort (shop_ex. Columns [1], ListSortDirection. Ascending);
// Clients = String. Format ("select * from {0};", "clients"); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new MySqlCommandBuilder (da);. Fill (data);. DataSource = data;
} break; 3:
{
// Типи Продуктовsql = String. Format ("select * from {0};", "type"); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new MySqlCommandBuilder (da);. Fill (data);. DataSource = data;
// Постачальники = String. Format ("select * from {0};", "suppliers"); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new MySqlCommandBuilder (da);. Fill (data);. DataSource = data;
// Виробники = String. Format ("select * from {0};", "manufacturer"); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new MySqlCommandBuilder (da);. Fill (data);. DataSource = data;
// Продукти = String. Format ("select * from {0};", "production"); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new MySqlCommandBuilder (da);. Fill (data);. DataSource = data;. Sort (dataGridView4. Columns [0], ListSortDirection. Ascending);
} break; 4:
{sql = String. Format ("select * from {0};", "shop"); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new MySqlCommandBuilder (da);. Fill (data);. DataSource = data;
} break; 5:
{sql = String. Format ("select * from {0};", "suppliers"); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new MySqlCommandBuilder (da);. Fill (data);. DataSource = data;
} break; 6:
{sql = String. Format ("select * from {0};", "manufacturer"); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new MySqlCommandBuilder (da);. Fill (data);. DataSource = data;
} break; 7:
{sql = String. Format ("select * from {0};", "type"); = new DataTable (); = new MySqlDataAdapter (sql, connStr); = new My...