public void IntialSetup(string athleteId, string accessToken) { DataManipulatorHandler.CreateSingleton(athleteId, accessToken); activityCacheHandler = new ActivityCacheHandler(); activityCacheHandler.Init(Int64.Parse(athleteId)); Title = "Alerts"; this.Seconds = 10; }
public TrendAnalysis(string athleteId, string stravaId, string accessToken, string menuSelection) { InitializeComponent(); DataManipulatorHandler.CreateSingleton(athleteId, accessToken); this.MenuSelection = menuSelection; this.AccessToken = accessToken; this.Seconds = 10; LoadScreen(); }
public void LoadScreen() { PeaksTitle.Text = LabelHandler.Instance.GetPeaksTitle(MenuSelection); UnitsLabel1.Text = LabelHandler.Instance.GetPeaksLabel(MenuSelection); UnitsLabel2.Text = LabelHandler.Instance.GetPeaksLabel(MenuSelection); UnitsLabel3.Text = LabelHandler.Instance.GetPeaksLabel(MenuSelection); UnitsLabel4.Text = LabelHandler.Instance.GetPeaksLabel(MenuSelection); DataManipulatorHandler.CreateSingleton(); Stream = StreamFactory.GetSingleton(Activity, AccessToken).CreateStream(MenuSelection); LoadChart(Stream); LoadLabels(Stream); LoadCommands(); }
public LeaderboardList(string athleteId, string stravaId, string accessToken, string menuSelection) { InitializeComponent(); Title = "Leaderboard"; Items = new ObservableCollection <Activity> { }; DataManipulatorHandler.CreateSingleton(athleteId, accessToken); activitySummaryCacheHandler = new ActivitySummaryCacheHandler(); activityCacheHandler = new ActivityCacheHandler(); this.Seconds = 10; this.MenuSelection = menuSelection; this.AccessToken = accessToken; LoadScreen(); }