/// <summary> /// Creates the job and session views and adds their views/subviews to the mainview /// </summary> public async void SetupLoggingUI() { await Task.Delay(TimeSpan.FromMilliseconds(2)); reportingSection = new ChooseReporting(containerView); reportingSection.savedReports.TouchUpInside += loadSavedReports; reportingSection.newReport.TouchUpInside += showDataSection; dataSection = new ChooseData(containerView, selectedSessions, this); savedReportsSection = new ChooseSaved(containerView); //graphingSection = new ChooseGraphing(containerView, dataSection); showGraphButton = new UIButton(new CGRect(.55 * containerView.Bounds.Width, .895 * containerView.Bounds.Height, .4 * containerView.Bounds.Width, .07 * containerView.Bounds.Height)); showGraphButton.Layer.CornerRadius = 5f; showGraphButton.Layer.BorderColor = UIColor.Black.CGColor; showGraphButton.Layer.BorderWidth = 2f; showGraphButton.BackgroundColor = UIColor.FromRGB(255, 215, 101); showGraphButton.SetTitle(Util.Strings.Report.BUILDREPORT, UIControlState.Normal); showGraphButton.SetTitleColor(UIColor.Black, UIControlState.Normal); showGraphButton.Enabled = false; showGraphButton.Alpha = .6f; showGraphButton.ClipsToBounds = true; ///user feedback for button press showGraphButton.TouchUpInside += showGraphSection; containerView.AddSubview(reportingSection.typeView); containerView.AddSubview(dataSection.DataType); containerView.AddSubview(savedReportsSection.showReports); //containerView.AddSubview(graphingSection.graphingType); containerView.AddSubview(showGraphButton); }
public ChooseGraphing(UIView containerView, ChooseData dataSection) { graphingType = new UIView(new CGRect(0, 0, containerView.Bounds.Width, .9 * containerView.Bounds.Height)); graphingType.BackgroundColor = UIColor.White; graphingType.Layer.BorderColor = UIColor.Black.CGColor; graphingType.Layer.BorderWidth = 1f; graphingType.Layer.CornerRadius = 5; cellHeight = .07f * containerView.Bounds.Height; checkData = dataSection; }