private void btnAdd_Click(object sender, EventArgs e) { ResultSetRowNode node = (ResultSetRowNode)treeView1.SelectedNode.Tag; // get the parent form UploadExample parentForm = (UploadExample)this.Owner; parentForm.LocationUuid = node.id; parentForm.LocationName = treeView1.SelectedNode.Text; this.Close(); }
private void button3_Click(object sender, EventArgs e) { UploadExample imageUpload = new UploadExample(); imageUpload.Show(); }