/// <summary> /// constructor for the current fdorm /// </summary> /// <param name="cymain">reference to the intial entrypoint so we can update values</param> /// <param name="ftp">the current FTP, defaults to zero if one is not provided</param> public EnterFTP(CyclingMain cymain, double ftp = 0) { InitializeComponent(); //assigns the values this.cyclingMain = cymain; this.ftp = ftp; }
/// <summary> /// Constructor /// </summary> /// <param name="dv">reference to the dataview for this file</param> /// <param name="cyMain">refrenec to the main window</param> /// <param name="file">file, file 1 or file 2</param> public ComparrisonControl(DataViewImproved dv, CyclingMain cyMain, string file) { InitializeComponent(); this.dv = dv; this.hrData = dv.GetFullData(); this.cyMain = cyMain; unit = false; this.file = file; groupBox1.Text = file; chunks = new List <DateTime[]>(); data[0] = hrData.DataEuro; data[1] = hrData.DataUS; UpdateSummaryNoDate(); FullDataNoDate(); //just set the data in the view now }
/// <summary> /// constructor for entering the max heart rate /// </summary> /// <param name="cymain">refreence back to the intial entry point so we can update values</param> /// <param name="hr">value for the heart rate, defaults to zero if one is not provided</param> public EnterHR(CyclingMain cymain, int hr = 0) { InitializeComponent(); this.cyclingMain = cymain; this.hr = hr; }