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 async Task <int> GetPeakAverageElementToAddAsync(int Seconds, Activity activity, string MenuSelection) { return(Int32.Parse(ErrorHandler.Instance.CheckStreamSequenceNotOutAbounds(((int) GetHighestSequenceXAverage(Seconds, await StreamFactory.GetSingleton(activity, AccessToken) .CreateStream(MenuSelection)))))); }