void thisBox_Click(object sender, EventArgs e) { Affiliation_Form showAffiliation = new Affiliation_Form(); showAffiliation.SetAffiliation(affiliationObject); showAffiliation.ShowDialog(); base.thisBox.Text = affiliationObject.ToString().Replace("<i>", "").Replace("</i>", "").Replace("&", "&").Replace(""", "\""); }
void thisBox_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyCode != Keys.Control) && (e.KeyCode != Keys.PrintScreen) && (e.KeyCode != Keys.Down)) { Affiliation_Form showAffiliation = new Affiliation_Form(); showAffiliation.SetAffiliation(affiliationObject); showAffiliation.ShowDialog(); base.thisBox.Text = affiliationObject.ToString().Replace("<i>", "").Replace("</i>", "").Replace("&", "&").Replace(""", "\""); } }