Esempio n. 1
0
        /// <summary>
        /// A doubleclick goes to the corresponding place and
        /// also adds it to the history list
        /// </summary>
        /// <param name="e"></param>
        protected override void OnDoubleClick(EventArgs e)
        {
            base.OnDoubleClick(e);
            ListViewItem lvi = this.FocusedItem;

            if (lvi == null)
            {
                return;
            }

            PlaceItem pi = (PlaceItem)lvi.Tag;

            if (this.WorldWindow != null)
            {
                pi.Goto(this.m_worldWindow);
            }
            if (this.RecentFinds != null)
            {
                this.RecentFinds.AddPlace(pi);
            }
        }