void thisBox_Click(object sender, EventArgs e) { Publisher_Form showNameForm = new Publisher_Form(); showNameForm.SetPublisher(nameObject, true); showNameForm.Read_Only = read_only; showNameForm.ShowDialog(); if (showNameForm.Changed) { OnDataChanged(); } base.thisBox.Text = nameObject.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)) { Publisher_Form showNameForm = new Publisher_Form(); showNameForm.SetPublisher(nameObject, true); showNameForm.Read_Only = read_only; showNameForm.ShowDialog(); if (showNameForm.Changed) { OnDataChanged(); } base.thisBox.Text = nameObject.ToString().Replace("<i>", "").Replace("</i>", "").Replace("&", "&").Replace(""", "\""); } }