//Bind the combobox with de Model View private void ClientOrder_Load(object sender, EventArgs e) { orderid.DataSource = DBController.GetAllClientsOrder(); }
//Binds the combobox with de Model View public ConfirmRecieve() { InitializeComponent(); pieceref.DataSource = DBController.GetAllPiecesOrdered(); }
//ON CLICK : Updates the piece in the DB (see DBController.DeletePieceOrdered Method) private void Confirm_Click(object sender, EventArgs e) { DBController.DeletePieceOrdered(((PieceStock)pieceref.SelectedItem).Id, ((PieceStock)pieceref.SelectedItem).Quantity); Close(); }
public Stock() { InitializeComponent(); //Bind it with the View Model dataGridView.DataSource = DBController.GetAllStock(); }
//order piece tab public OrderPiece() { InitializeComponent(); //Bind it with the View Model dataGridView.DataSource = DBController.GetAllPiecesOrdered(); }
private void comboBoxSupp_SelectedIndexChanged(object sender, EventArgs e) { comboBoxPiece.DataSource = DBController.GetAllCatalog((Supplier)comboBoxSupp.SelectedItem); }
public Update() { InitializeComponent(); comboBoxSupp.DataSource = DBController.GetAllSupplier(); }
//Bind the combobox with de Model View public PieceOrder() { InitializeComponent(); Piece.DataSource = DBController.GetAllPiecesToOrder(); Number.Text = "1"; }