public Form1() { InitializeComponent(); order = new OrderService(); bindingSource1.DataSource = order.GetAllOrders(); textBox1.DataBindings.Add("Text", this, "KeyWord"); }
private void button4_Click(object sender, EventArgs e) { using (Form2 fm = new Form2(order)) { order = fm.OS; } bindingSource1.DataSource = list; bindingSource1.DataSource = order.GetAllOrders(); }
private void button2_Click(object sender, EventArgs e) { order.RemoveOrder(KeyWord); bindingSource1.DataSource = list; bindingSource1.DataSource = order.GetAllOrders(); }