protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (e.NavigationMode == System.Windows.Navigation.NavigationMode.New) {
                var vm = new TaskViewModel();
                var task = default(Task);

                if (NavigationContext.QueryString.ContainsKey("id")) {
                    var id = int.Parse(NavigationContext.QueryString["id"]);
                    task = (App.Current as TaskyWP7.App).TaskMgr.GetTask(id);
                }

                if (task != null) {
                    vm.Update(task);
                }

                DataContext = vm;
            }
        }