public SeriesTypesDelegate(TypesTableController controller,ChartViewController chartController) { _controller = controller; }
public SeriesTypesDelegate(TypesTableController controller, ChartViewController chartController) { _controller = controller; }
// 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; UIButton button = new UIButton(new RectangleF(20, 265, 280, 48)); button.SetTitle("Chart Features", UIControlState.Normal); button.BackgroundColor = UIColor.DarkGray; button.SetTitleColor(UIColor.White, UIControlState.Normal); this.View.AddSubview(button); button.TouchDown += delegate(object sender, EventArgs e) { NavigationController.SetNavigationBarHidden(false, true); TypesTableController scontroller = new TypesTableController(); NavigationController.PushViewController(scontroller, true); }; UIButton buttonStatistical = new UIButton(new RectangleF(20, 315, 280, 48)); buttonStatistical.SetTitle("Battery Level Demo", UIControlState.Normal); buttonStatistical.SetTitleColor(UIColor.White, UIControlState.Normal); buttonStatistical.BackgroundColor = UIColor.DarkGray; this.View.AddSubview(buttonStatistical); buttonStatistical.TouchDown += delegate(object sender, EventArgs e) { ChartViewController controller = new ChartViewController(); NavigationController.PushViewController(controller, true); }; UIButton buttonAbout = new UIButton(new RectangleF(20, 365, 280, 48)); buttonAbout.SetTitle("About", UIControlState.Normal); buttonAbout.SetTitleColor(UIColor.White, UIControlState.Normal); buttonAbout.BackgroundColor = UIColor.DarkGray; 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); } }
// 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; UIButton button = new UIButton(new RectangleF(20, 265, 280, 48)); button.SetTitle("Chart Features", UIControlState.Normal); button.BackgroundColor= UIColor.DarkGray; button.SetTitleColor(UIColor.White, UIControlState.Normal); this.View.AddSubview(button); button.TouchDown += delegate(object sender, EventArgs e) { NavigationController.SetNavigationBarHidden(false,true); TypesTableController scontroller = new TypesTableController(); NavigationController.PushViewController(scontroller,true); }; UIButton buttonStatistical = new UIButton(new RectangleF(20, 315, 280, 48)); buttonStatistical.SetTitle("Battery Level Demo", UIControlState.Normal); buttonStatistical.SetTitleColor(UIColor.White, UIControlState.Normal); buttonStatistical.BackgroundColor= UIColor.DarkGray; this.View.AddSubview(buttonStatistical); buttonStatistical.TouchDown += delegate(object sender, EventArgs e) { ChartViewController controller = new ChartViewController(); NavigationController.PushViewController(controller,true); }; UIButton buttonAbout = new UIButton(new RectangleF(20, 365, 280, 48)); buttonAbout.SetTitle("About", UIControlState.Normal); buttonAbout.SetTitleColor(UIColor.White, UIControlState.Normal); buttonAbout.BackgroundColor= UIColor.DarkGray; 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); } }