protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.GraphView); oxygenGraph = FindViewById <TelemetryGraph> (Resource.Id.graph1); oxygenGraph.LineColor = Color.Red; co2Graph = FindViewById <TelemetryGraph> (Resource.Id.graph2); co2Graph.LineColor = Color.LightSteelBlue; TelemetryService.Instance.StartListening(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.GraphView); oxygenGraph = FindViewById<TelemetryGraph> (Resource.Id.graph1); oxygenGraph.LineColor = Color.Red; co2Graph = FindViewById<TelemetryGraph> (Resource.Id.graph2); co2Graph.LineColor = Color.LightSteelBlue; TelemetryService.Instance.StartListening(); }
public GraphView() { OxygenGraph = new TelemetryGraph() { LineColor = UIColor.Red, BackgroundColor = UIColor.White, }; Co2Graph = new TelemetryGraph() { LineColor = UIColor.Blue, BackgroundColor = UIColor.White, }; this.AddSubview(OxygenGraph); this.AddSubview(Co2Graph); }