//popup dialog
 internal HighScoreViewer(IDailyActivityView view)
     : this(true)
 {
     m_view = view;
     m_layer = TrailPointsLayer.Instance((IView)view);
     this.ShowPage("");
 }
 //Analyze popup dialog
 internal PerformancePredictorControl(IDailyActivityView view)
     : this(true)
 {
     m_view = view;
     m_layer = TrailPointsLayer.Instance((IView)view);
     this.predictorView.InitControls(m_DetailPage, m_view, m_layer, this);
     this.trainingView.InitControls(m_DetailPage, m_view, m_layer, this);
     this.extrapolateView.InitControls(m_DetailPage, m_view, m_layer, this);
 }
 //Activity page
 internal PerformancePredictorControl(IDetailPage detailPage, IDailyActivityView view)
     : this()
 {
     m_DetailPage = detailPage;
     m_view = view;
     m_layer = TrailPointsLayer.Instance(m_view);
     if (m_DetailPage != null)
     {
         //expandButton.Visible = true;
     }
     this.predictorView.InitControls(m_DetailPage, m_view, m_layer, this);
     this.trainingView.InitControls(m_DetailPage, m_view, m_layer, this);
     this.extrapolateView.InitControls(m_DetailPage, m_view, m_layer, this);
 }
        public void InitControls(IDetailPage detailPage, IDailyActivityView view, TrailPointsLayer layer, PerformancePredictorControl ppControl)
        {
#if !ST_2_1
            //m_DetailPage = detailPage;
            m_view = view;
            m_layer = layer;
#endif
            m_ppcontrol = ppControl;

            copyTableMenuItem.Image = ZoneFiveSoftware.Common.Visuals.CommonResources.Images.DocumentCopy16;
            summaryList.NumHeaderRows = TreeList.HeaderRows.Two;
            summaryList.LabelProvider = new ResultLabelProvider();
            IAxis axis = new RightVerticalAxis(chart);
            chart.YAxisRight.Add(axis);
        }
        public void InitControls(IDetailPage detailPage, IDailyActivityView view, TrailPointsLayer layer, PerformancePredictorControl ppControl)
        {
#if !ST_2_1
            m_DetailPage = detailPage;
            m_view = view;
            m_layer = layer;
#endif
            m_ppcontrol = ppControl;

            //Set in user code rather than generated code, to make GUI editing possible
            this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;

            copyTableMenuItem.Image = ZoneFiveSoftware.Common.Visuals.CommonResources.Images.DocumentCopy16;

            temperatureList.LabelProvider = new TemperatureLabelProvider();
            weightList.LabelProvider = new WeightLabelProvider();
            shoeList.LabelProvider = new ShoeLabelProvider();
            ageList.LabelProvider = new AgeLabelProvider();
        }
 //Activity page
 public HighScoreViewer(IDetailPage detailPage, IDailyActivityView view)
    : this()
 {
     m_DetailPage = detailPage;
     m_view = view;
     m_layer = TrailPointsLayer.Instance(m_view);
     if (m_DetailPage != null)
     {
         //expandButton.Visible = true;
     }
     if (Settings.ShowTrailsHint)
     {
         String oneTimeMessage = "The Trails plugin can be used as viewer for High Scores. Trails provides many more features, for instance graphs and top lists. Just select the HighScore trail. See the HighScore or Trails documentation for more information. This message will not be shown again.";
         DialogResult r = MessageDialog.Show(oneTimeMessage, "Trails Plugin", MessageBoxButtons.OK, MessageBoxIcon.Information);
         if (r == DialogResult.OK)
         {
             Settings.ShowTrailsHint = false;
         }
     }
 }
示例#7
0
        private static TrailPointsLayer InstanceBase(ActivityDetailPageControl page, IView view, int zorder)
        {
            TrailPointsLayer result = null;

            if (view != null && m_layers != null)
            {
                string key = view.Id.ToString() + zorder;
                if (m_layers.ContainsKey(key))
                {
                    result = m_layers[key];
                }
            }
            if (result == null && m_layers.Count > 0)
            {
                foreach (TrailPointsLayer l in m_layers.Values)
                {
                    //Just any layer - the first should be the best
                    result = l;
                    break;
                }
            }
            return(result);
        }
        public UniqueRoutesActivityDetailView(IDetailPage detailPage, IDailyActivityView view)
            : this()
        {
            m_DetailPage = detailPage;
            m_view = view;
            if (this.m_layer != null)
            {
                m_layer = TrailPointsLayer.Instance(m_view);
            }
            if (m_DetailPage != null)
            {
                //expandButton.Visible = true;
            }

            if (Settings.ShowTrailsHint)
            {
                String oneTimeMessage = "The Trails plugin can be used as viewer for Unique Routes to get more features, for instance graphs. Just select the UniqueRoutes trail in Trails. See the UniqueRoutes or Trails documentation for more information. This message will not be shown again.";
                DialogResult r = MessageDialog.Show(oneTimeMessage, "Trails Plugin", MessageBoxButtons.OK, MessageBoxIcon.Information);
                if (r == DialogResult.OK)
                {
                    Settings.ShowTrailsHint = false;
                }
            }
        }
 internal HighScoreViewer(IActivityReportsView view)
     : this(true)
 {
     m_layer = TrailPointsLayer.Instance((IView)view);
     this.ShowPage("");
 }
示例#10
0
        public void InitControls(IDetailPage detailPage, IDailyActivityView view, TrailPointsLayer layer, PerformancePredictorControl ppControl)
        {
#if !ST_2_1
            m_DetailPage = detailPage;
            m_view = view;
            m_layer = layer;
#endif
            m_ppcontrol = ppControl;

            //Set in user code rather than generated code, to make GUI editing possible
            this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;

            copyTableMenuItem.Image = ZoneFiveSoftware.Common.Visuals.CommonResources.Images.DocumentCopy16;

            trainingList.LabelProvider = new TrainingLabelProvider();
            paceTempoList.LabelProvider = new PaceTempoLabelProvider();
            intervalList.LabelProvider = new IntervalLabelProvider();
            trainingList.Columns.Clear();
            foreach (string id in ResultColumnIds.TrainingColumns)
            {
                foreach (IListColumnDefinition columnDef in ResultColumnIds.ColumnDefs())
                {
                    if (columnDef.Id == id)
                    {
                        TreeList.Column column = new TreeList.Column(
                            columnDef.Id,
                            columnDef.Text(columnDef.Id),
                            columnDef.Width,
                            columnDef.Align
                        );
                        trainingList.Columns.Add(column);
                        break;
                    }
                }
            }
            paceTempoList.Columns.Clear();
            foreach (string id in ResultColumnIds.PaceTempoColumns)
            {
                foreach (IListColumnDefinition columnDef in ResultColumnIds.ColumnDefs())
                {
                    if (columnDef.Id == id)
                    {
                        TreeList.Column column = new TreeList.Column(
                            columnDef.Id,
                            columnDef.Text(columnDef.Id),
                            columnDef.Width,
                            columnDef.Align
                        );
                        paceTempoList.Columns.Add(column);
                        break;
                    }
                }
            }
            intervalList.Columns.Clear();
            foreach (string id in ResultColumnIds.IntervallColumns)
            {
                foreach (IListColumnDefinition columnDef in ResultColumnIds.ColumnDefs())
                {
                    if (columnDef.Id == id)
                    {
                        TreeList.Column column = new TreeList.Column(
                            columnDef.Id,
                            columnDef.Text(columnDef.Id),
                            columnDef.Width,
                            columnDef.Align
                        );
                        intervalList.Columns.Add(column);
                        break;
                    }
                }
            }
        }
示例#11
0
 public static TrailPointsLayer InstanceMarked(ActivityDetailPageControl page, IView view)
 {
     return(TrailPointsLayer.InstanceBase(page, view, TrailPointsProvider.TrailsLayerZOrderMarked));
 }