public RemoveRange ( int start, int count ) : void | ||
start | int | /// Starting position /// |
count | int | /// Number of elements to remove from the section /// |
리턴 | void |
public TrafficViewDialogViewController (TrafficUpdates tu, string origin, string destination ) : base (UITableViewStyle.Grouped, null) { string head = "Traffic Update"; secOutput = new Section("Output"); root = new RootElement (head) { secOutput }; Origin = origin; Destination = destination; Root = root; dvc = new DialogViewController (root, true); var tap = new UITapGestureRecognizer (); tap.AddTarget (() =>{ dvc.View.EndEditing (true); }); dvc.View.AddGestureRecognizer (tap); tu.TrafficUpdate += Display; tap.CancelsTouchesInView = false; dvc.NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Refresh, delegate { secOutput.RemoveRange(0, secOutput.Count); tu.Origin = Origin; tu.Destination = Destination; tu.RunSearch("", false, false); }); AppDelegate.navigation.PushViewController (dvc, true); tu.Origin = Origin; tu.Destination = Destination; tu.RunSearch("", false, false); }