ObjectManager/App.xaml.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using ObjectManager.Common;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace ObjectManager
{
/// <summary>
/// App.xaml 的交互逻辑
/// </summary>
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
try
{
if ((Global.IsTest & MyEnum.TestType.NotCheckVersion) != MyEnum.TestType.NotCheckVersion)
{
Dictionary<string, bool> dic_Check = Global.CheckVersion();
//如果需要更新
if (dic_Check.ContainsKey("IsUpdate") && dic_Check["IsUpdate"])
{
UI.Common.Windows.Common_Windows_Update win = new UI.Common.Windows.Common_Windows_Update(
dic_Check.ContainsKey("MustUpdate") ? dic_Check["MustUpdate"] : false);
if (!win.ShowDialog().Value)
{
Util.FileHelper.RunApp(Util.FileHelper.GetNowPath() + "\\update.exe", "update;" + Global.VersionUrl);
Application.Current.Shutdown();
}
else
{
//UI.Login.Windows.Login_Windows_Main frm = new UI.Login.Windows.Login_Windows_Main();
//frm.ShowDialog();
}
}
}
}
catch
{
}
///关联本地调用地址
string dataDir = AppDomain.CurrentDomain.BaseDirectory;
if (dataDir.EndsWith(@"\bin\Debug\") || dataDir.EndsWith(@"\bin\Release\"))
{
dataDir = System.IO.Directory.GetParent(dataDir).Parent.Parent.FullName + "";
后面还有 14 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
