public override async void ViewDidLoad () { base.ViewDidLoad (); addButton = new UIBarButtonItem(UIBarButtonSystemItem.Add, (s,e) => { var task = new Task() {Title="<new task>"}; var ts = new TaskScreen (task, this); NavigationController.PushViewController (ts, true); }); NavigationItem.RightBarButtonItem = addButton; await ReloadAsync(); }
public void Reload() { Console.WriteLine ("Reload MonoTouch.Dialog"); var tasklist = from task in tasks orderby task.Title select (Element)new TickElement (task.Title, task.IsDone, () => { var ts = new TaskScreen (task, this); NavigationController.PushViewController (ts, true); }); var s = new Section (); s.AddAll (tasklist); Root = new RootElement ("TaskyParse") { s }; }
public override async void ViewDidLoad() { base.ViewDidLoad(); addButton = new UIBarButtonItem(UIBarButtonSystemItem.Add, (s, e) => { var task = new Task() { Title = "<new task>" }; var ts = new TaskScreen(task, this); NavigationController.PushViewController(ts, true); }); NavigationItem.RightBarButtonItem = addButton; await ReloadAsync(); }
public void Reload() { Console.WriteLine("Reload MonoTouch.Dialog"); var tasklist = from task in tasks orderby task.Title select(Element) new TickElement(task.Title, task.IsDone, () => { var ts = new TaskScreen(task, this); NavigationController.PushViewController(ts, true); }); var s = new Section(); s.AddAll(tasklist); Root = new RootElement("TaskyParse") { s }; }