private void Cart_Load(object sender, EventArgs e) { PageLayoutMaker.SetBasePageLayout(this); FillOrderTable(); PageLayoutMaker.CreateQuitButton(this); PageLayoutMaker.CreateReturnToCatalogButton(this); PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user, client); }
private void Client_indentification_Load(object sender, EventArgs e) { PageLayoutMaker.SetBasePageLayout(this); PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user, client); PageLayoutMaker.CreateQuitButton(this); PageLayoutMaker.CreateReturnToCatalogButton(this); clientList = DBConnection.SelectRegisteredClient(); for (int i = 0; i < clientList.Count; i++) { //comboBoxClientSelection.Items.Add("(" + clientList[i].id + ") " + clientList[i].name + " - " + clientList[i].address); comboBoxClientSelection.Items.Add(clientList[i]); } }
private void Order_Load(object sender, EventArgs e) { PageLayoutMaker.SetBasePageLayout(this); PageLayoutMaker.CreateHeader(this, DBConnection.loadImage(1), user, client); PageLayoutMaker.CreateQuitButton(this); PageLayoutMaker.CreateReturnToCatalogButton(this); label_name.Text = bicycle.name; for (int i = 0; i < bicycle.availableColors.Count; i++) { comboBoxColor.Items.Add(bicycle.availableColors[i]); } for (int i = 0; i < bicycle.availableSizes.Count; i++) { comboBoxSize.Items.Add(bicycle.availableSizes[i]); } }