add thread to exmepage
This commit is contained in:
@@ -43,7 +43,6 @@ namespace CampusAppWP8.Pages.Exams
|
||||
this.BachelorItem.Header = CampusAppWPortalLib8.Resources.AppResources.Degree_Bachelor;
|
||||
this.MasterItem.Header = CampusAppWPortalLib8.Resources.AppResources.Degree_Master;
|
||||
this.DiplomItem.Header = CampusAppWPortalLib8.Resources.AppResources.Degree_Diploma;
|
||||
this.DefHeader.ProgressVisibility = Visibility.Visible;
|
||||
this.InitializeFeed();
|
||||
}
|
||||
|
||||
@@ -65,6 +64,7 @@ namespace CampusAppWP8.Pages.Exams
|
||||
this.InitializeFeed();
|
||||
}
|
||||
|
||||
this.DefHeader.ProgressVisibility = Visibility.Visible;
|
||||
Thread thread = new Thread(new ThreadStart(this.LoadingFeed));
|
||||
thread.Start();
|
||||
|
||||
@@ -117,13 +117,10 @@ namespace CampusAppWP8.Pages.Exams
|
||||
if (this.Dispatcher != null)
|
||||
{
|
||||
this.Dispatcher.BeginInvoke(new Action(() => this.SetupExamList()));
|
||||
this.Dispatcher.BeginInvoke(new Action(() => this.DefHeader.ProgressVisibility = Visibility.Collapsed));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SetupExamList();
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,6 +155,7 @@ namespace CampusAppWP8.Pages.Exams
|
||||
this.MasterPanel.ItemsSource = masterList;
|
||||
this.DiplomaPanel.ItemsSource = diplomaList;
|
||||
this.ExamPivot.SelectedIndex = this.CalcSelectedIndex();
|
||||
this.DefHeader.ProgressVisibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
/// <summary>Calculates the selected index.</summary>
|
||||
|
||||
Reference in New Issue
Block a user