public SolvedTasksPage(TaskViewForMainWindows taskViewForSolvedTaskWindow)
 {
     InitializeComponent();
     TaskViewForSolvedTaskWindow = taskViewForSolvedTaskWindow;
     txtbTaskName.Text = taskViewForSolvedTaskWindow.Name;
     RefreshTable();
 }
        private void downloadSolvedBtn_Click(object sender, RoutedEventArgs e)
        {
            var element = GetTaskType();
            if (element != null)
            {
                var taskEx = new TaskViewForMainWindows
                    {
                        Name = element.ChildNodes[0].InnerText,
                        TaskUniq = element.ChildNodes[3].InnerText,
                        Window = element.ChildNodes[4].InnerText
                    };

                navigation = NavigationService.GetNavigationService(this);
                navigation.Navigate(new SolvedTasksPage(taskEx));
            }
        }