private void button4_Click(object sender, EventArgs e) { string Id,Code,Nom,Edition,Version,Infos; Id = txtId.Text; Code = txtCode.Text; Nom = txtNom.Text; Edition = txtEdition.Text; Version = txtVersion.Text; Infos = txtInfos.Text; frmDetOS form = new frmDetOS(); form.txtCode.Text = Code; form.txtId.Text = (Convert.ToInt32(Id) + 1).ToString(); form.txtNom.Text = Nom; form.txtEdition.Text = Edition; form.txtVersion.Text = Version; form.txtInfos.Text = Infos; this.Hide(); form.Closed += (s, args) => this.Close(); form.Show(); }
private void button4_Click(object sender, EventArgs e) { string Id, Code, Nom, Edition, Version, Infos; Id = txtId.Text; Code = txtCode.Text; Nom = txtNom.Text; Edition = txtEdition.Text; Version = txtVersion.Text; Infos = txtInfos.Text; frmDetOS form = new frmDetOS(); form.txtCode.Text = Code; form.txtId.Text = (Convert.ToInt32(Id) + 1).ToString(); form.txtNom.Text = Nom; form.txtEdition.Text = Edition; form.txtVersion.Text = Version; form.txtInfos.Text = Infos; this.Hide(); form.Closed += (s, args) => this.Close(); form.Show(); }