private async void Back_Click(object sender, RoutedEventArgs e) { TimeTable.Instance.UnChoose(); TimeTableList tmp = await TimeTable.Instance.GetContent(); PutContent(tmp.content, tmp.backContent); }
private async void itemsControl_Click(object sender, RoutedEventArgs e) { var button = (Button)e.OriginalSource; string dataItem = button.DataContext as string; TimeTableList newContent = await timeTable.Choose(dataItem); if (newContent != null) { PutContent(newContent.content, newContent.backContent); } }