MsgAlter.xaml.cs 949 B

1234567891011121314151617181920212223242526272829303132333435
  1. using Muchinfo.MTPClient.Infrastructure.MessageBox;
  2. using System.Windows;
  3. namespace Muchinfo.MTPClient.Bank.Views
  4. {
  5. /// <summary>
  6. /// MsgAlter.xaml 的交互逻辑
  7. /// </summary>
  8. public partial class MsgAlter : Window
  9. {
  10. public MsgAlter(string Url ,string tip="")
  11. {
  12. InitializeComponent();
  13. this.Tb_Url.Text = Url;
  14. TxtBlock.Text = tip;
  15. }
  16. private void Button_Click(object sender, RoutedEventArgs e)
  17. {
  18. try
  19. {
  20. Clipboard.SetDataObject(this.Tb_Url.Text);
  21. MessageBoxHelper.ShowInfo(Muchinfo.MTPClient.Resources.Client_Resource.Bank_CopyToPasteBoard, Muchinfo.MTPClient.Resources.Client_Resource.Bank_Tips);
  22. }
  23. catch
  24. {
  25. }
  26. }
  27. private void Button_Click_1(object sender, RoutedEventArgs e)
  28. {
  29. this.Close();
  30. }
  31. }
  32. }