Esempio n. 1
0
        public Control CreatePageControl()
        {
            if (m_control == null)
            {
#if ST_2_1
                m_control            = new ActivityDetailPageControl();
                m_control.Activities = m_activities;
#else
                m_control = new ActivityDetailPageControl(this, m_view);
#endif
            }
            return(m_control);
        }
Esempio n. 2
0
        public void SetControl(ActivityDetailPageControl page, IDailyActivityView view)
        {
            m_view = view;
#endif
            m_page = page;
            foreach (TrailLineChart t in m_lineCharts)
            {
                t.SetControl(m_page, this);
            }
            if (this.m_page.IsPopup)
            {
                this.btnExpand.Visible = false;
            }
        }
Esempio n. 3
0
        public EditTrail(ITheme visualTheme, System.Globalization.CultureInfo culture, ActivityDetailPageControl page,
                         IDailyActivityView view, TrailPointsLayer layer, bool addMode, bool copy, TrailResult tr)
#endif
            : this(addMode, copy)
        {
#if !ST_2_1
            this.m_page              = page;
            this.m_view              = view;
            this.m_layer             = layer;
            this.m_layer.TrailPoints = m_TrailToEdit.TrailLocations;
#endif
            this.m_trailResult = tr;
            //It is possible that the trail result is not for the trail to edit (if more than one is selected)
            if (tr != null && tr.Trail != Controller.TrailController.Instance.PrimaryCurrentActivityTrail.Trail)
            {
                this.m_trailResult = null;
            }

            ThemeChanged(visualTheme);
            UICultureChanged(culture);
        }
Esempio n. 4
0
        public void SetControl(ActivityDetailPageControl page,
#if ST_2_1
                               Object view, UI.MapLayers.MapControlLayer layer)
Esempio n. 5
0
 public void SetControl(ActivityDetailPageControl page, Object view)
 {