Example #1
0
        /// <summary>
        /// User wants to create a new task.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void Create_Click(object sender, RoutedEventArgs e)
        {
            var d      = new NewTaskItem();
            var result = await d.ShowAsync();

            TaskDB.AddTask("Task5").NumberToDo = 5;
        }
Example #2
0
        public MainPage()
        {
            DataContext = this;

            TaskDB.AddTask("task1");
            TaskDB.AddTask("task2");
            TaskDB.AddTask("task3");

            this.InitializeComponent();
        }
Example #3
0
        /// <summary>
        /// Turn on the back button
        /// </summary>
        /// <param name="e"></param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;

            // Fetch the object
            var t = TaskDB.FindTask((Guid)e.Parameter);

            DataContext = t;

            base.OnNavigatedTo(e);
        }