public MasterImageAddingTableNavigationController(IUpdatableTable tableViewController) : base() { PushViewController(tableViewController.tableController, true); table = tableViewController; tableViewController.tableController.NavigationItem.Title = "Attributes"; tableViewController.tableController.NavigationItem.RightBarButtonItem = new UIBarButtonItem(); tableViewController.tableController.NavigationItem.RightBarButtonItem.Title = "Finish"; }
public static bool AddRow(this IUpdatableTable table, string data) { if (table.source.UpdateData(data)) { var t = table.tableController.View as UITableView; t.ReloadData(); return(true); } return(false); }
public SessionsScreenMasterTableNavigationController(IUpdatableTable tableViewController, MainTabBarController view) : base() { tabBar = view; PushViewController(tableViewController.tableController, true); table = tableViewController; tableViewController.tableController.NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Add, (sender, e) => HandleTouchUpInside(sender, e)); NavigationBar.TitleTextAttributes = new UIStringAttributes() { ForegroundColor = UIColor.White }; NavigationBar.BarTintColor = AppColors.DARK_GRAY; NavigationBar.TintColor = UIColor.White; }
public AttributesMasterTableNavigationController(IUpdatableTable tableViewController) : base() { this.PushViewController(tableViewController.tableController, true); table = tableViewController; title = new UILabel() { Text = "Attributes (Select to filter)", TextColor = UIColor.White }; title.SizeToFit(); tableViewController.tableController.NavigationItem.TitleView = title; tableViewController.tableController.NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Add, (sender, e) => HandleTouchUpInside(sender, e)); tableViewController.tableController.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Stop, (sender, e) => HandleTouchUpInsideLeft(sender, e));; tableViewController.tableController.NavigationItem.LeftBarButtonItem.TintColor = UIColor.White; tableViewController.tableController.NavigationItem.RightBarButtonItem.TintColor = UIColor.White; NavigationBar.TitleTextAttributes = new UIStringAttributes() { ForegroundColor = UIColor.White }; NavigationBar.BarTintColor = AppColors.DARK_GRAY; }
public MasterTableNavigationController(IUpdatableTable tableViewController) : base() { this.PushViewController(tableViewController.tableController, true); table = tableViewController; titleOnLeft = new UILabel() { Text = getLabelName(table.TableType), TextColor = UIColor.White }; titleOnLeft.SizeToFit(); leftItem = new UIBarButtonItem(); leftItem.CustomView = titleOnLeft; tableViewController.tableController.NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Add, (sender, e) => HandleTouchUpInside(sender, e)); tableViewController.tableController.NavigationItem.LeftBarButtonItem = leftItem; NavigationBar.TitleTextAttributes = new UIStringAttributes() { ForegroundColor = UIColor.White }; NavigationBar.BarTintColor = AppColors.DARK_GRAY; NavigationBar.TintColor = UIColor.White; this.TableViewController = tableViewController; }