public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.
            var button = new UIButton
            {
                Frame           = new CoreGraphics.CGRect(50, 100, 150, 50),
                BackgroundColor = UIColor.Red
            };

            button.SetTitle("IT Employees", UIControlState.Normal);
            View.Add(button);
            button.TouchUpInside += (object sender, EventArgs e) => {
                EmployeeListViewController controller = this.Storyboard.InstantiateViewController("EmployeeListViewController") as EmployeeListViewController;
                this.NavigationController.PushViewController(controller, true);
            };
        }
Ejemplo n.º 2
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            EmployeeListViewController employeelistviewObj = new EmployeeListViewController();

            employeelistviewObj.DataViewer(tableView, indexPath);
        }