示例#1
0
        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();
        }
示例#2
0
        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();
        }
示例#3
0
 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);
 }
示例#4
0
 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);
 }