private void btn_next_Click(object sender, EventArgs e) { var fr = new frm_details_conflit(); fr.txt_num_conflit.Text = txt_num_conflit.Text; fr.ShowDialog(); refresh(); }
private void btn_details_Click(object sender, EventArgs e) { if (txt_code_conflit.Text == "") { MessageBox.Show("Choisissez le conflit auquel vous voulez ajouter des details!"); } else { var fr = new frm_details_conflit(); fr.txt_num_conflit.Text = txt_code_conflit.Text; fr.ShowDialog(); } }