void activation(Form7 f7) { f7.btnajouterCommde.Text = "&Valider la modification"; f7.btnAnnulerEditcmmde.Visible = true; f7.btnajouterCommde.Enabled = true; f7.btnAnnulerEditcmmde.Enabled = true; f7.cbxTyppeTissu.Enabled = true; f7.txtavancement.Enabled = true; f7.txtlngTissu.Enabled = true; f7.txtPrix.Enabled = true; f7.dgvClientCmmde.Enabled = false; f7.dateLivraison.Enabled = true; f7.btnModel.Enabled = true; }
private void btnmodicommande_Click(object sender, EventArgs e) { Form7 f7 = new Form7(); f7.btnfermer.Visible = false; activation(f7); f7.idcmmdeEdit = int.Parse(dgvCmmde.CurrentRow.Cells[0].Value.ToString()); f7.cbxTyppeTissu.Text = dgvCmmde.CurrentRow.Cells[3].Value.ToString(); f7.txtlngTissu.Text = dgvCmmde.CurrentRow.Cells[4].Value.ToString(); f7.txtPrix.Text = dgvCmmde.CurrentRow.Cells[5].Value.ToString(); f7.txtavancement.Text = dgvCmmde.CurrentRow.Cells[6].Value.ToString(); f7.file.FileName = imgModel.ImageLocation; f7.Show(); this.Close(); }
private void button2_Click(object sender, EventArgs e) { Form7 f7 = new Form7(); f7.Show(); }