private async void Update_Click(object sender, RoutedEventArgs e)
{
Waiting.IsActive = true;
int result = await app.User.Update(cardnum.Text, password.Password,
string.IsNullOrEmpty(number.Text) ? null : number.Text,
string.IsNullOrEmpty(pe_password.Password) ? null : pe_password.Password,
string.IsNullOrEmpty(lib_username.Text) ? null : lib_username.Text,
string.IsNullOrEmpty(lib_password.Password) ? null : lib_password.Password,
string.IsNullOrEmpty(card_query_password.Password) ? null : card_query_password.Password);
Waiting.IsActive = false;
if (result==1)
{
ContentDialog dialog = new ContentDialog()
{
Title = "信息更新成功^_^", //标题
Content = "快去看看能不能正常使用了~",//内容
FullSizeDesired = false, //是否全屏展示
PrimaryButtonText = "OK",
};
dialog.PrimaryButtonClick += dialog_PrimaryButtonClick;
dialog.ShowAsync();
}
}
}