1 Star 0 Fork 8

zilin_zhang/fnsync

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
WindowInstruction.xaml.cs 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
holmium 提交于 2020-12-27 10:45 . Improves Performances
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
namespace FnSync
{
/// <summary>
/// Interaction logic for WindowNewUser.xaml
/// </summary>
public partial class WindowInstruction : Window
{
public static WindowInstruction CurrentWindow { get; protected set; } = null;
public static void NewOne()
{
App.FakeDispatcher.Invoke(() => { if (CurrentWindow == null) { new WindowInstruction().Show(); } else { CurrentWindow.Activate(); } return null; });
}
public WindowInstruction()
{
CurrentWindow = this;
InitializeComponent();
if (Thread.CurrentThread.CurrentCulture.Name.Equals("zh-CN"))
{
DownloadAndroidCompanionCoolApk.Visibility = Visibility.Visible;
}
#if DEBUG
DownloadAndroidCompanionCoolApk.Visibility = Visibility.Visible;
#endif
}
protected override void OnClosing(CancelEventArgs e)
{
CurrentWindow = null;
if (AlivePhones.Singleton.Count == 0)
{
WindowConnect.NewOne();
}
}
private void GotIt_Click(object sender, RoutedEventArgs e)
{
Close();
}
private void DownloadAndroidCompanion_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
{
if (sender is Hyperlink link)
{
System.Diagnostics.Process.Start(link.NavigateUri.AbsoluteUri);
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/zilin__zhang/fnsync.git
git@gitee.com:zilin__zhang/fnsync.git
zilin__zhang
fnsync
fnsync
master

搜索帮助