private void showMyData_Click(object sender, EventArgs e) { ShowContractor form = new ShowContractor(1); form.FormClosed += NewProjectForm_FormClosed; form.ShowDialog(); }
private void showContractorForm() { if (listView1.SelectedItems.Count > 0) { Company var3 = (Company)listView1.SelectedItems[0].Tag; ShowContractor form = new ShowContractor(var3.ID); form.FormClosed += NewProjectForm_FormClosed; form.Show(); } }