Skip to content

Commit

Permalink
change file char-set to UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
kctekn committed Dec 17, 2024
1 parent 5dab9c2 commit 9a8307c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/BlueCatKoKo.Ui/Views/Pages/HomePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ public HomePage(HomeViewModel viewModel)

private void clearContent(object sender, MouseButtonEventArgs e)
{
// 将 sender 转换为 TextBox 对象
// 将 sender 转换为 TextBox 对象
TextBox textBox = sender as TextBox;

// 清空 TextBox 的内容
// 清空 TextBox 的内容
//if (textBox != null)
//{
// textBox.Text = ""; // 清空文本框内容
// textBox.Text = ""; // 清空文本框内容
//}

// 如果 sender 是一个 TextBox,并且剪贴板包含文本
// 如果 sender 是一个 TextBox,并且剪贴板包含文本
if (textBox != null && Clipboard.ContainsText())
{
// 将剪贴板中的文本设置为 TextBox 的内容
// 将剪贴板中的文本设置为 TextBox 的内容
textBox.Text = Clipboard.GetText();
}
}
Expand Down

0 comments on commit 9a8307c

Please sign in to comment.