Beispiel #1
0
        void thisBox_KeyDown(object sender, KeyEventArgs e)
        {
            if ((e.KeyCode != Keys.Control) && (e.KeyCode != Keys.PrintScreen) && (e.KeyCode != Keys.Down))
            {
                Hierarchical_Geographic_Form showGeoForm = new Hierarchical_Geographic_Form();
                showGeoForm.SetGeography(geoObject);
                showGeoForm.Read_Only = read_only;
                showGeoForm.ShowDialog();

                if (showGeoForm.Changed)
                {
                    OnDataChanged();
                }

                base.thisBox.Text = geoObject.ToString().Replace("<i>", "").Replace("</i>", "").Replace("&amp;", "&").Replace("&quot;", "\"");
            }
        }
Beispiel #2
0
        /// <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)
        {
            int hierarchical_index = -1;

            for (int i = 0; i < Bib.Bib_Info.Subjects.Count; i++)
            {
                if (Bib.Bib_Info.Subjects[i].Class_Type == Subject_Info_Type.Hierarchical_Spatial)
                {
                    hierarchical_index++;
                    if (hierarchical_index == base.index)
                    {
                        geoObject         = (Subject_Info_HierarchicalGeographic)Bib.Bib_Info.Subjects[i];
                        base.thisBox.Text = geoObject.ToString();
                        break;
                    }
                }
            }
        }