public BranchCell(Branch branch, NSString identKey) : base(UITableViewCellStyle.Default, identKey) { // Configure your cell here: selection style, colors, properties branchView = new BranchView (branch); ContentView.Add (branchView); }
public FinancialStatusByBranchController(Branch branch) : base(UITableViewStyle.Grouped, null) { Autorotate = false; this.branch = branch; contentWidth = View.Frame.Width + 20; Console.WriteLine ("FinancialStatusByBranchController .... View.Frame.Width aka contentWidth = " + contentWidth); buildReport (); }
// Public method, that allows the code to externally update // what we are rendering. public void Update(Branch branch) { this.branch = branch; SetNeedsDisplay (); }
public BranchView(Branch branch) { Update (branch); }
// Called by our client code when we get new data. public void UpdateCell(Branch branch) { branchView.Update (branch); }