Exemplo n.º 1
0
        //public TChart chart= new Steema.TeeChart.TChart();
        //SettingsController controller;
        //ChartViewController controller;
        #region Constructors

        // The IntPtr and initWithCoder constructors are required for items that need
        // to be able to be created from a xib rather than from managed code
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            View.BackgroundColor = UIColor.Black;
            NavigationController.NavigationBar.TintColor = UIColor.Black;
            this.NavigationItem.RightBarButtonItem       = null;

            UIColor       tint   = UIColor.Black;
            UIGlassButton button = new UIGlassButton(new RectangleF(20, 265, 280, 48));

            button.SetTitle("Chart Features", UIControlState.Normal);
            button.SetTitleColor(UIColor.White, UIControlState.Normal);
            button.SetValueForKey(tint, "tintColor");
            this.View.AddSubview(button);

            button.TouchDown += delegate(object sender, EventArgs e) {
                NavigationController.SetNavigationBarHidden(false, true);
                // controller = new ChartViewController();
//				SeriesTypesController scontroller = new SeriesTypesController(controller.chart,controller,UITableViewStyle.Grouped);
                SeriesTypesController scontroller = new SeriesTypesController(UITableViewStyle.Grouped);
                NavigationController.PushViewController(scontroller, true);
            };

            UIGlassButton buttonStatistical = new UIGlassButton(new RectangleF(20, 315, 280, 48));

            buttonStatistical.SetTitle("Battery Level Demo", UIControlState.Normal);
            buttonStatistical.SetTitleColor(UIColor.White, UIControlState.Normal);
            buttonStatistical.SetValueForKey(tint, "tintColor");
            this.View.AddSubview(buttonStatistical);

            buttonStatistical.TouchDown += delegate(object sender, EventArgs e) {
                ChartViewController controller = new ChartViewController();
                NavigationController.PushViewController(controller, true);
            };

            UIGlassButton buttonAbout = new UIGlassButton(new RectangleF(20, 365, 280, 48));

            buttonAbout.SetTitle("About", UIControlState.Normal);
            buttonAbout.SetTitleColor(UIColor.White, UIControlState.Normal);
            buttonAbout.SetValueForKey(tint, "tintColor");
            this.View.AddSubview(buttonAbout);

            buttonAbout.TouchDown += delegate(object sender, EventArgs e) {
                AboutViewController controller = new AboutViewController();
                NavigationController.PushViewController(controller, true);
            };

            //float ix = (this.View.Bounds.Right /2) - 55.5f;

            var image2Rect = new RectangleF(0f, 20f, 234f, 225f);

            using (var myImage = new UIImageView(image2Rect))
            {
                myImage.Image  = UIImage.FromFile("images/Chart1.png");
                myImage.Opaque = false;

                this.View.AddSubview(myImage);
            }

            var imageRect = new RectangleF(190f, 10f, 111f, 80f);

            using (var myImage = new UIImageView(imageRect))
            {
                myImage.Image  = UIImage.FromFile("images/TeeChartNETForIPhone111x80.png");
                myImage.Opaque = false;

                this.View.AddSubview(myImage);
            }
        }
Exemplo n.º 2
0
		//private NSIndexPath _previousRow;
		
		public SeriesTypesDelegate(SeriesTypesController controller,ChartViewController chartController)
		{
			_controller = controller;
			//_previousRow = NSIndexPath.FromRowSection(Settings.SelectedIndex,0);
		}
Exemplo n.º 3
0
		//public TChart chart= new Steema.TeeChart.TChart();
		//SettingsController controller;
		//ChartViewController controller;
		#region Constructors

		// The IntPtr and initWithCoder constructors are required for items that need 
		// to be able to be created from a xib rather than from managed code
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			  View.BackgroundColor=UIColor.Black;
			  NavigationController.NavigationBar.TintColor = UIColor.Black;
			  this.NavigationItem.RightBarButtonItem=null;
 
			  UIColor tint = UIColor.Black;
		 	  UIGlassButton button = new UIGlassButton(new RectangleF(20, 265, 280, 48));
		 	  button.SetTitle("Chart Features", UIControlState.Normal);
			  button.SetTitleColor(UIColor.White, UIControlState.Normal);
			  button.SetValueForKey(tint, "tintColor");
			  this.View.AddSubview(button);
			
     	      button.TouchDown += delegate(object sender, EventArgs e) {
				NavigationController.SetNavigationBarHidden(false,true);
               // controller = new ChartViewController();	
//				SeriesTypesController scontroller = new SeriesTypesController(controller.chart,controller,UITableViewStyle.Grouped); 		  
				SeriesTypesController scontroller = new SeriesTypesController(UITableViewStyle.Grouped); 		  
                NavigationController.PushViewController(scontroller,true);
              };

		 	  UIGlassButton buttonStatistical = new UIGlassButton(new RectangleF(20, 315, 280, 48));
		 	  buttonStatistical.SetTitle("Battery Level Demo", UIControlState.Normal);
			  buttonStatistical.SetTitleColor(UIColor.White, UIControlState.Normal);
			  buttonStatistical.SetValueForKey(tint, "tintColor");
			  this.View.AddSubview(buttonStatistical);
			
     	      buttonStatistical.TouchDown += delegate(object sender, EventArgs e) {
                ChartViewController controller = new ChartViewController();			  
                NavigationController.PushViewController(controller,true);
              };

			  UIGlassButton buttonAbout = new UIGlassButton(new RectangleF(20, 365, 280, 48));
		 	  buttonAbout.SetTitle("About", UIControlState.Normal);
			  buttonAbout.SetTitleColor(UIColor.White, UIControlState.Normal);
			  buttonAbout.SetValueForKey(tint, "tintColor");
			  this.View.AddSubview(buttonAbout);
			
     	      buttonAbout.TouchDown += delegate(object sender, EventArgs e) {
                AboutViewController controller = new AboutViewController();			  
                NavigationController.PushViewController(controller,true);
              };
			
			  //float ix = (this.View.Bounds.Right /2) - 55.5f;
			
			  var image2Rect = new RectangleF(0f, 20f, 234f, 225f);
				using (var myImage = new UIImageView(image2Rect))
				{  
				    myImage.Image = UIImage.FromFile("images/Chart1.png");
				    myImage.Opaque = false;
				
				    this.View.AddSubview(myImage);
				}

			  var imageRect = new RectangleF(190f, 10f, 111f, 80f);
				using (var myImage = new UIImageView(imageRect))
				{  
				    myImage.Image = UIImage.FromFile("images/TeeChartNETForIPhone111x80.png");
				    myImage.Opaque = false;
				
				    this.View.AddSubview(myImage);
				}
		}
 public SeriesTypesDelegate(SeriesTypesController controller, ChartViewController chartController)
 {
     _controller = controller;
 }
Exemplo n.º 5
0
        //private NSIndexPath _previousRow;

        public SeriesTypesDelegate(SeriesTypesController controller, ChartViewController chartController)
        {
            _controller = controller;
            //_previousRow = NSIndexPath.FromRowSection(Settings.SelectedIndex,0);
        }