private void button1_Click(object sender, EventArgs e) { ProfilesForm prof = new ProfilesForm(); prof.ShowDialog(); if (prof.DialogResult == DialogResult.OK) { textBox1.Text = prof.answr; LoadRulesFromXml(); } }
public CreProfForm(ProfilesForm frm) { InitializeComponent(); prf = frm; }