示例#1
0
        private async void Back_Click(object sender, RoutedEventArgs e)
        {
            TimeTable.Instance.UnChoose();

            TimeTableList tmp = await TimeTable.Instance.GetContent();

            PutContent(tmp.content, tmp.backContent);
        }
示例#2
0
        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);
            }
        }