private void button1_Click(object sender, EventArgs e) { string a = treeView1.SelectedNode.Text; SearchResident fm = new SearchResident(a); fm.ShowDialog(); }
private void rESIDENTToolStripMenuItem2_Click(object sender, EventArgs e) { SearchResident sr = new SearchResident(); sr.ShowDialog(); }