private void NouvelleCommande_Load(object sender, EventArgs e) { this.comboCodeClient.Focus(); //----------------Informations Societe (BEGIN)------------------------------// InfoSociete Societe = new InfoSociete(); string titre = Societe.nom + "\n" + Societe.adresse + "\nTel:" + Societe.tel + " Fax:" + Societe.fax; label10.Text = titre; MemoryStream ms = new MemoryStream(); ms.Write(Societe.logo, 0, Societe.logo.Length); Image imgPhoto = Image.FromStream(ms); picLogo.Image = imgPhoto; //----------------Informations Societe (END)------------------------------// labelCodeFacture.Text = facture.GenerateCode(); comboCodeClient.DataSource = TB_Client.GetList(); comboCodeClient.DisplayMember = "Code"; dateTimePicker2.Value = dateTimePicker2.Value.AddDays(1); comboCodeClient.Text = client.GenerateCode(); textNomClient.Text = ""; textPrenomClient.Text = ""; maskedTextTelClient.Text = ""; textAdresseClient.Text = ""; }
public IndoFacture() { InitializeComponent(); Save = true; TB_Facture newfacture = new TB_Facture(); TextCodeFacture.Value = newfacture.GenerateCode(); DateRecuFacture.Value = DateTime.Now; DateLivraisonFacutre.Value = DateTime.Now.AddDays(1); }