-
-
Save anonymous/6fbc365b273bbbb1a2ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Tasky/TaskyiOS/Screens/controller_iPhone.cs b/Tasky/TaskyiOS/Screens/controller_iPhone.cs | |
index 214be9f..7c3d462 100644 | |
--- a/Tasky/TaskyiOS/Screens/controller_iPhone.cs | |
+++ b/Tasky/TaskyiOS/Screens/controller_iPhone.cs | |
@@ -18,6 +18,7 @@ namespace Tasky.Screens { | |
protected void Initialize() | |
{ | |
+ Root = new RootElement ("Tasky"); | |
NavigationItem.SetRightBarButtonItem (new UIBarButtonItem (UIBarButtonSystemItem.Add), false); | |
NavigationItem.RightBarButtonItem.Clicked += (sender, e) => { ShowTaskDetails(new Task()); }; | |
} | |
@@ -69,12 +70,12 @@ namespace Tasky.Screens { | |
{ | |
tasks = BL.Managers.TaskManager.GetTasks ().ToList (); | |
var newTask = NSBundle.MainBundle.LocalizedString ("<new task>", "<new task>"); | |
- Root = new RootElement ("Tasky") { | |
- new Section() { | |
- from t in tasks | |
- select (Element) new CheckboxElement((t.Name == "" ? newTask : t.Name), t.Done) | |
- } | |
- }; | |
+ | |
+ Root.Clear (); | |
+ Root.Add (new Section() { | |
+ from t in tasks | |
+ select (Element) new CheckboxElement((t.Name == "" ? newTask : t.Name), t.Done) | |
+ }); | |
} | |
public override void Selected (NSIndexPath indexPath) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment