private void btnSave_Click(object sender, EventArgs e) { if (cmbName.Text != "" && txtValue.Text != "") { GraphAPI gForm = this.Owner as GraphAPI; gForm.hdrName = cmbName.Text; gForm.hdrValue = txtValue.Text; } this.Close(); }
private void btnGraphAPI_Click(object sender, EventArgs e) { Forms.GraphAPI mGraph = new Forms.GraphAPI(authResult, user.DisplayableId); mGraph.Owner = this; mGraph.ShowDialog(this); }