Skip to content

Commit

Permalink
20231222183400
Browse files Browse the repository at this point in the history
  • Loading branch information
KalevaAalto committed Dec 22, 2023
2 parents 50e0a9b + a891c9b commit 38cf628
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions Pages/MailPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,41 +62,6 @@ protected override async void OnNavigatedTo(NavigationEventArgs e)
// 处理传递过来的参数
this.tag = (string)e.Parameter;
// 在这里添加你的逻辑

}


if (this.loginStatus.userData != null)
{
this.listview.ItemsSource = this.loginStatus.userData.letters;
await this.loginStatus.userData.CollectLetter();

}
timer.Start();
}


protected override void OnNavigatedFrom(NavigationEventArgs e)
{
base.OnNavigatedFrom(e);

// 停止定时器,释放资源
timer.Stop();
}

private void listview_ItemClick(object sender, ItemClickEventArgs e)
{
// 获取点击的项的数据
Models.Letter clickedItem = e.ClickedItem as Models.Letter;

// 处理点击事件,例如显示一个消息框
if (clickedItem != null)
{
this.textblock_area.Text = clickedItem.TextBody;
}
else
{
this.textblock_area.Text = @"Error!";
}
}
}
Expand Down

0 comments on commit 38cf628

Please sign in to comment.