void thisBox_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyCode != Keys.Control) && (e.KeyCode != Keys.PrintScreen) && (e.KeyCode != Keys.Down)) { Name_Info_Form showNameForm = new Name_Info_Form(); showNameForm.SetName(nameObject, false, true, null, false); showNameForm.Read_Only = read_only; showNameForm.ShowDialog(); if (showNameForm.Changed) { OnDataChanged(); } string nameText = nameObject.ToString().Replace("<i>", "").Replace("</i>", "").Replace("&", "&").Replace(""", "\""); if (nameText == "unknown") { thisBox.Text = String.Empty; } else { thisBox.Text = nameText; } } }
void thisBox_Click(object sender, EventArgs e) { Name_Info_Form showNameForm = new Name_Info_Form(); showNameForm.SetName(nameObject, false, false, affiliation, main_entity); showNameForm.Read_Only = read_only; showNameForm.ShowDialog(); if (showNameForm.Changed) { OnDataChanged(); } main_entity = showNameForm.Main_Entity; affiliation = showNameForm.Affiliation; show_name_info(); }
void thisBox_KeyDown(object sender, KeyEventArgs e) { if ((e.KeyCode != Keys.Control) && (e.KeyCode != Keys.PrintScreen) && (e.KeyCode != Keys.Down)) { Name_Info_Form showNameForm = new Name_Info_Form(); showNameForm.SetName(nameObject, false, false, affiliation, main_entity); showNameForm.Read_Only = read_only; showNameForm.ShowDialog(); if (showNameForm.Changed) { OnDataChanged(); } main_entity = showNameForm.Main_Entity; affiliation = showNameForm.Affiliation; show_name_info(); } }
void thisBox_Click(object sender, EventArgs e) { Name_Info_Form showNameForm = new Name_Info_Form(); showNameForm.SetName(nameObject, false, true, null, false); showNameForm.Read_Only = read_only; showNameForm.ShowDialog(); if (showNameForm.Changed) { OnDataChanged(); } string nameText = nameObject.ToString().Replace("<i>", "").Replace("</i>", "").Replace("&", "&").Replace(""", "\""); if (nameText == "unknown") { thisBox.Text = String.Empty; } else { thisBox.Text = nameText; } }