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(""", "\""); } }
/// <summary> Saves the data stored in this instance of the /// element to the provided bibliographic object </summary> /// <param name="Bib"> Object to populate this element from </param> public override void Populate_From_Bib(SobekCM_Item Bib) { if (base.index < Bib.Bib_Info.Manufacturers.Count) { nameObject = Bib.Bib_Info.Manufacturers[base.index]; base.thisBox.Text = nameObject.ToString().Replace("<i>", "").Replace("</i>", "").Replace("&", "&").Replace(""", "\"");; } }