private void btnMoveAllLeft_Click(object sender, EventArgs e) { VehicleWheel1.AddRange(VehicleWheel2); VehicleWheel2.Clear(); RebindListbox1(); RebindListbox2(); }
private void btnMoveLeft_Click(object sender, EventArgs e) { if (lbxVehicleWheel2.SelectedItems != null) { foreach (var item in lbxVehicleWheel2.SelectedItems) { VehicleWheel1.Add((VehicleWheelViewModel)item); } foreach (VehicleWheelViewModel item in VehicleWheel1) { VehicleWheel2.Remove(item); } RebindListbox1(); RebindListbox2(); } }