text: ﻿using System;
  using System.Deployment.Application;
  using System.Diagnostics;
  using System.Windows;
  using System.Windows.Documents;
  using System.Windows.Input;
  
  namespace imt_wankeyun_client
  {
      /// <summary>
      /// AboutWindow.xaml 的交互逻辑
      /// </summary>
      public partial class AboutWindow : Window
      {
          public AboutWindow()
          {
              InitializeComponent();
              try
              {
                  tbk_version.Text = GetEdition();
              }
              catch (Exception ex)
              {
                  tbk_version.Text = "开发版";
                  Debug.WriteLine(ex.Message);
              }
          }
          public static string GetEdition()
          {
              return ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString();
          }
          private void About1_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
          {
              this.DragMove();
          }
          private void button_Click(object sender, RoutedEventArgs e)
          {
              this.Close();
          }
          private void button1_Click(object sender, RoutedEventArgs e)
          {
              this.Close();
          }
  
          private void Hyperlink_Click(object sender, RoutedEventArgs e)
          {
              Hyperlink link = sender as Hyperlink;
              Process.Start(new ProcessStartInfo(link.NavigateUri.AbsoluteUri));
          }
  
          private void link_Click(object sender, RoutedEventArgs e)
          {
              Hyperlink link = sender as Hyperlink;
              Process.Start(new ProcessStartInfo("https://www.66otc.com/register?ref=MpypNllOZJ&hmsr=%E4%B8%8D%E6%9C%BD%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%96%87%E5%AD%97%E9%93%BE%E6%8E%A5&hmpl=&hmcu=&hmkw=&hmci="));
          }
      }
  }
  