2026-06-04 01:39:30 +00:00
|
|
|
|
using Config;
|
|
|
|
|
|
using HtmlAgilityPack;
|
2020-12-10 09:01:23 +00:00
|
|
|
|
using ryCommon;
|
2025-01-06 03:13:21 +00:00
|
|
|
|
using ryControls;
|
2020-12-10 09:01:23 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Itrycn_Project2
|
|
|
|
|
|
{
|
2021-06-12 14:09:28 +00:00
|
|
|
|
public partial class FrmStart : RySkins.SKinForm
|
2020-12-10 09:01:23 +00:00
|
|
|
|
{
|
2022-02-09 08:56:35 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 最大日志数量
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
private int MaxLogsCount { get; set; } = 1000;
|
2021-06-12 14:09:28 +00:00
|
|
|
|
readonly string[] prog_args;
|
2020-12-10 09:01:23 +00:00
|
|
|
|
public FrmStart(string[] args)
|
|
|
|
|
|
{
|
2025-01-06 03:13:21 +00:00
|
|
|
|
//var img = RyImage.LoadPic("http://pic.2265.com/upload/2024-2/2024261342151467.png");
|
2020-12-10 09:01:23 +00:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
prog_args = args;
|
|
|
|
|
|
//配置软件信息
|
2021-06-12 14:09:28 +00:00
|
|
|
|
notifyIcon1.Text = Soft_ConstInfo.Soft_Title;
|
|
|
|
|
|
Text = Soft_ConstInfo.Soft_Title + " V" + RySoft.VersionStr;
|
|
|
|
|
|
if (!Soft_ConstInfo.ShowTray) { notifyIcon1.Visible = false; }
|
|
|
|
|
|
if (!Soft_ConstInfo.DonateVisabled) { 捐助ToolStripMenuItem.Text = "关于"; }
|
|
|
|
|
|
if (Soft_ConstInfo.Soft_Url.Length == 0) { 打开官网ToolStripMenuItem.PerformClick(); }
|
2020-12-10 09:01:23 +00:00
|
|
|
|
notifyIcon1.Icon = Icon;
|
2022-02-09 08:56:35 +00:00
|
|
|
|
OlvLogTime.AspectGetter = delegate (object x) { return ((LogInfo)x).LogTime.ToDateTimeStr(); };
|
|
|
|
|
|
OlvLogText.AspectGetter = delegate (object x) { return ((LogInfo)x).LogText; };
|
|
|
|
|
|
LvLogs.FormatRow += delegate (object x, BrightIdeasSoftware.FormatRowEventArgs e) {
|
2023-11-07 08:36:50 +00:00
|
|
|
|
LogInfo item = (LogInfo)e.Model;
|
|
|
|
|
|
if (item.Color != Color.Black)
|
|
|
|
|
|
{
|
|
|
|
|
|
e.Item.ForeColor = item.Color;
|
|
|
|
|
|
}
|
2022-02-09 08:56:35 +00:00
|
|
|
|
};
|
2026-06-04 01:39:30 +00:00
|
|
|
|
|
2025-01-06 03:13:21 +00:00
|
|
|
|
//var href = "http://www.87g.com/youxi/4740.html";
|
|
|
|
|
|
//var dd = href.StartsWith("@");
|
|
|
|
|
|
//var kk= GetSection(RyFiles.ReadAllText("E:\\My Datas\\My Codes\\毕方项目\\CSharp\\ryProcessManager\\Bin\\Debug\\11111111.txt"),"//h3 | //h4");
|
|
|
|
|
|
//HtmlAgilityPack.HtmlDocument htmlDoc = new HtmlAgilityPack.HtmlDocument();
|
|
|
|
|
|
//htmlDoc.LoadHtml("<div class=\"inlink_div\"><h4>您还感兴趣</h4><p class=\"inlink_p\"><span> <a href=\"http://www.87g.com/youxi/4740.html\" class=\"inlink_page\" target=\"_blank\">水果缤纷手游下载</a>:《水果缤纷》作为一款休闲消除类手机游戏,现游戏安卓版本可供玩家试玩。当各种缤纷水果来袭,绝对让你眼花缭乱,还能分得清水果品种去准确消除么?快加入游戏,看看你的眼力!</span><span> <a href=\"http://www.87g.com/youxi/56805.html\" class=\"inlink_page\" target=\"_blank\">烦人的橘子游戏下载</a>:烦人的橘子是一款鬼畜趣味的水果作战游戏,延续了动漫中的怪物的角色形象和场景设计,借鉴了打棒球的游戏玩法,玩家需要抓住时机,将各种表情丑陋甚至看起来贱兮兮的水果一棒子打到指定的位置来闯关,超级魔性!</span></p></div>");
|
|
|
|
|
|
}
|
|
|
|
|
|
public static Dictionary<string, string> GetSection(string content_html, string xpath_section)
|
|
|
|
|
|
{
|
|
|
|
|
|
Dictionary<string, string> dict_section = new Dictionary<string, string>();
|
|
|
|
|
|
|
|
|
|
|
|
var html_item = Section(content_html, xpath_section, out string section_name2);
|
|
|
|
|
|
if (!dict_section.ContainsKey(section_name2)) { dict_section.Add(section_name2, html_item); }
|
|
|
|
|
|
string Section(string content, string section_xpath, out string section_name)
|
|
|
|
|
|
{
|
|
|
|
|
|
HtmlAgilityPack.HtmlDocument htmlDoc2 = new HtmlAgilityPack.HtmlDocument();
|
|
|
|
|
|
htmlDoc2.LoadHtml(content);
|
|
|
|
|
|
HtmlNodeCollection body_anchor = htmlDoc2.DocumentNode.SelectNodes("//body");//筛选出网站的链接
|
|
|
|
|
|
if (body_anchor != null && body_anchor.Count > 0)
|
|
|
|
|
|
{
|
|
|
|
|
|
htmlDoc2.LoadHtml(body_anchor[0].InnerHtml);
|
|
|
|
|
|
}
|
|
|
|
|
|
HtmlNode next;
|
|
|
|
|
|
HtmlNode child = htmlDoc2.DocumentNode.FirstChild;
|
|
|
|
|
|
string childname;
|
|
|
|
|
|
string html_text = "";
|
|
|
|
|
|
section_name = "";
|
|
|
|
|
|
while (child != null)
|
|
|
|
|
|
{
|
|
|
|
|
|
next = child.NextSibling;
|
|
|
|
|
|
#region 获取节点信息
|
|
|
|
|
|
//lastName = childname;
|
|
|
|
|
|
if (child.NodeType == HtmlNodeType.Element)
|
|
|
|
|
|
{
|
|
|
|
|
|
childname = child.Name.ToLower();
|
|
|
|
|
|
//RyFiles.WriteAllText(Application.StartupPath+"\\11111111.txt", content_html);
|
|
|
|
|
|
HtmlAgilityPack.HtmlDocument htmlDoc_item = new HtmlAgilityPack.HtmlDocument();
|
|
|
|
|
|
htmlDoc_item.LoadHtml(child.OuterHtml);
|
|
|
|
|
|
HtmlNodeCollection an_xpath = htmlDoc_item.DocumentNode.SelectNodes(section_xpath);//筛选出网站的链接
|
|
|
|
|
|
if (an_xpath != null && an_xpath.Count > 0) //如果包含段落,则继续进入查看
|
|
|
|
|
|
{
|
|
|
|
|
|
if (an_xpath[0].ParentNode == null || an_xpath[0].ParentNode.NodeType == HtmlNodeType.Document)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (section_name.Length == 0) { section_name = "总览"; }
|
|
|
|
|
|
if (dict_section.ContainsKey(section_name)) { dict_section[section_name] = html_text; }
|
|
|
|
|
|
else { dict_section.Add(section_name, html_text); }
|
|
|
|
|
|
section_name = an_xpath[0].InnerText.Trim();
|
|
|
|
|
|
html_text = "";
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
return Section(child.InnerHtml, section_xpath, out section_name);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
if (child.Name.ToLower() == "br")
|
|
|
|
|
|
{ html_text += "\r\n"; }
|
|
|
|
|
|
else if (child.Name.ToLower() == "p")
|
|
|
|
|
|
{ html_text += "\r\n" + child.OuterHtml; }
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
|
|
|
|
|
html_text += child.OuterHtml;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
else if (child.NodeType == HtmlNodeType.Text)
|
|
|
|
|
|
{
|
|
|
|
|
|
html_text += child.OuterHtml;
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
child = next;
|
|
|
|
|
|
}
|
|
|
|
|
|
return html_text;
|
|
|
|
|
|
}
|
|
|
|
|
|
return dict_section;
|
2022-02-09 08:56:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 添加日志
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="log"></param>
|
|
|
|
|
|
public void AddLog(string log)
|
|
|
|
|
|
{
|
|
|
|
|
|
AddLog(log, "", Color.Black);
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 添加日志
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="log"></param>
|
|
|
|
|
|
/// <param name="color"></param>
|
|
|
|
|
|
public void AddLog(string log, Color color)
|
|
|
|
|
|
{
|
|
|
|
|
|
AddLog(log, "", color);
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 添加日志
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="log"></param>
|
|
|
|
|
|
/// <param name="tag"></param>
|
|
|
|
|
|
/// <param name="color"></param>
|
|
|
|
|
|
public void AddLog(string log, string tag, Color color)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Invoke(new Action(() =>
|
|
|
|
|
|
{
|
|
|
|
|
|
var count = LvLogs.GetItemCount();
|
|
|
|
|
|
if (count > MaxLogsCount)
|
|
|
|
|
|
{
|
|
|
|
|
|
LvLogs.RemoveObject(LvLogs.GetModelObject(count-1));
|
|
|
|
|
|
}
|
|
|
|
|
|
LvLogs.InsertObjects(0, new LogInfo[] { new LogInfo() { LogTime = DateTime.Now, LogText = log,LogTag=tag, Color = color } });
|
|
|
|
|
|
OlvLogTime.Text = "时间(" + LvLogs.GetItemCount() + ")";
|
2025-08-16 06:26:52 +00:00
|
|
|
|
TabLogs.Text = "日志(" + LvLogs.GetItemCount() + ")"; ;
|
2022-02-09 08:56:35 +00:00
|
|
|
|
}));
|
|
|
|
|
|
}
|
|
|
|
|
|
catch { }
|
2020-12-10 09:01:23 +00:00
|
|
|
|
}
|
|
|
|
|
|
private void 显示主窗体ToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.WindowState = FormWindowState.Normal;
|
|
|
|
|
|
var topmost = this.TopMost;
|
|
|
|
|
|
this.TopMost = true;
|
|
|
|
|
|
this.Show();
|
|
|
|
|
|
this.TopMost = topmost;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void 退出软件ToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
|
{
|
2023-11-07 08:36:50 +00:00
|
|
|
|
System.Windows.Forms.Application.Exit();
|
2020-12-10 09:01:23 +00:00
|
|
|
|
}
|
|
|
|
|
|
private void FrmStart_Shown(object sender, EventArgs e)
|
|
|
|
|
|
{
|
2021-06-12 14:09:28 +00:00
|
|
|
|
ryCommon.Ini ini = new Ini(Soft_ConstInfo.UserDataFolder + "\\Win.dat");
|
|
|
|
|
|
ini.WriteIni(Soft_ConstInfo.Soft_Id, "hwnd", Handle.ToInt32());
|
2020-12-10 09:01:23 +00:00
|
|
|
|
if (prog_args.Length >= 1)
|
|
|
|
|
|
{
|
|
|
|
|
|
//如果是自启动,并且开启了右下角托盘图标,则隐藏自身。
|
2021-06-12 14:09:28 +00:00
|
|
|
|
if (prog_args[0] == Soft_ConstInfo.Soft_Pram && Soft_ConstInfo.ShowTray)
|
2020-12-10 09:01:23 +00:00
|
|
|
|
this.Hide();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void FrmStart_FormClosing(object sender, FormClosingEventArgs e)
|
|
|
|
|
|
{
|
2021-06-12 14:09:28 +00:00
|
|
|
|
if (Soft_ConstInfo.ShowTray && Public_Config.HideByCloseBtn && e.CloseReason== CloseReason.UserClosing)
|
2020-12-10 09:01:23 +00:00
|
|
|
|
{
|
|
|
|
|
|
e.Cancel = true;
|
|
|
|
|
|
this.Hide();
|
2021-06-12 14:09:28 +00:00
|
|
|
|
notifyIcon1.ShowBalloonTip(3000, Soft_ConstInfo.Soft_Title, "软件已经最小化到此处,请右击托盘图标进行关闭。", ToolTipIcon.Info);
|
2020-12-10 09:01:23 +00:00
|
|
|
|
return;
|
|
|
|
|
|
}
|
2021-06-12 14:09:28 +00:00
|
|
|
|
if (!Soft_MemInfo.IsCanCloseForm)
|
2020-12-10 09:01:23 +00:00
|
|
|
|
{
|
|
|
|
|
|
e.Cancel = true;
|
2021-06-12 14:09:28 +00:00
|
|
|
|
RySkins.Msg.ShowMsg("当前还有操作正在运行,请稍后关闭软件。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
2020-12-10 09:01:23 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
protected override void WndProc(ref System.Windows.Forms.Message msg)
|
|
|
|
|
|
{
|
|
|
|
|
|
switch (msg.Msg)
|
|
|
|
|
|
{
|
|
|
|
|
|
case 17189: //处理消息
|
|
|
|
|
|
{
|
|
|
|
|
|
#region 激活窗体
|
|
|
|
|
|
switch (msg.WParam.ToInt32())
|
|
|
|
|
|
{
|
|
|
|
|
|
case 100://
|
|
|
|
|
|
#region 显示界面
|
|
|
|
|
|
if ((int)msg.LParam.ToInt32() == 100)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Show();
|
|
|
|
|
|
this.WindowState = FormWindowState.Normal;
|
|
|
|
|
|
this.Top = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2;
|
|
|
|
|
|
this.Left = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2;
|
|
|
|
|
|
//RyForm.SetActiveWindow(Handle);
|
|
|
|
|
|
RyForm.BringToTop(Handle);
|
|
|
|
|
|
显示主窗体ToolStripMenuItem.PerformClick();
|
|
|
|
|
|
this.BringToFront();
|
|
|
|
|
|
this.Select();
|
|
|
|
|
|
this.Focus();
|
|
|
|
|
|
RyForm.BringToTop(Handle);
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
|
|
|
default:
|
|
|
|
|
|
base.WndProc(ref msg);//调用基类函数处理非自定义消息。
|
|
|
|
|
|
break;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void 捐助ToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
|
{
|
2021-06-12 14:09:28 +00:00
|
|
|
|
if (Soft_ConstInfo.DonateVisabled)
|
2020-12-10 09:01:23 +00:00
|
|
|
|
{
|
|
|
|
|
|
FrmAbout frm = new FrmAbout();
|
|
|
|
|
|
frm.ShowDialog();
|
|
|
|
|
|
frm.Dispose();
|
|
|
|
|
|
}
|
|
|
|
|
|
else
|
|
|
|
|
|
{
|
2021-06-12 14:09:28 +00:00
|
|
|
|
|
|
|
|
|
|
RySkins.Msg.ShowMsg(Soft_ConstInfo.AboutText.Replace("#softname#", Soft_ConstInfo.Soft_Title).Replace("#ver#", "V" + RySoft.VersionStr), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
2020-12-10 09:01:23 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void 打开官网ToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
|
{
|
2021-06-12 14:09:28 +00:00
|
|
|
|
ryCommon.RyFiles.OpenUrl(Soft_ConstInfo.Soft_Url);
|
2020-12-10 09:01:23 +00:00
|
|
|
|
}
|
2023-11-07 08:36:50 +00:00
|
|
|
|
|
2020-12-10 09:01:23 +00:00
|
|
|
|
private void FrmStart_Load(object sender, EventArgs e)
|
|
|
|
|
|
{
|
2026-06-04 01:39:30 +00:00
|
|
|
|
ryCommon.SuperFileSearch superFileSearch = new SuperFileSearch();
|
|
|
|
|
|
superFileSearch.OnSearchFile += SuperFileSearch_OnSearchFile;
|
|
|
|
|
|
superFileSearch.OnSearchDir += SuperFileSearch_OnSearchDir;
|
|
|
|
|
|
var files = superFileSearch.Search("E:\\My Datas\\My Codes\\毕方项目\\CSharp\\数据库备份工具\\Source\\DatabaseBackup", "*.cs;*.csproj");
|
|
|
|
|
|
//var compare = RySoft.CompareVer("3.2","3.3 Build 2");
|
|
|
|
|
|
//ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
|
|
|
|
|
|
//ServicePointManager.ServerCertificateValidationCallback = ValidateServerCertificate;
|
2025-08-16 06:26:52 +00:00
|
|
|
|
//SaveBase64ImageAsFile("data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MjUzRUI0MTYxQzExRUVCMEZBRjAxODQ2NjA5Q0YxIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MjUzRUI1MTYxQzExRUVCMEZBRjAxODQ2NjA5Q0YxIj4gPHhtcE1NOkRlcml2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Index=0;
|
|
|
|
|
|
//ryCommon.ApkOp apkOp = new ApkOp();
|
|
|
|
|
|
//apkOp.AAPT_Path = "E:\\My Datas\\My Codes\\毕方项目\\CSharp\\ryProcessManager\\Bin\\Debug\\SysDb\\Tools\\ApkLook\\aapt.exe";
|
2026-06-04 01:39:30 +00:00
|
|
|
|
//var kk = apkOp.Read_Apk("C:\\Users\\zilin\\Desktop\\com.kwai.theater.apk");
|
|
|
|
|
|
//var hosts = ryCommon.RyFiles.ReadAllText(@"E:\My Datas\My Codes\毕方项目\CSharp\ryProcessManager\Bin\Debug\UserDb\Hosts.txt");
|
|
|
|
|
|
//var result = ryCommon.Hosts.AddHosts(hosts);
|
|
|
|
|
|
////var kk= ryCommon.ProcessExt.GetPath(24348);
|
|
|
|
|
|
////var img = RyImage.LoadPic(@"C:\Users\zilin\Desktop\1.jpg");
|
|
|
|
|
|
////var watermark =new Bitmap(RyImage.LoadPic(@"C:\Users\zilin\Desktop\water.png"));
|
|
|
|
|
|
////var pos= new List<WatermarkPosition>(new WatermarkPosition[] { WatermarkPosition.FullScreenTile });
|
|
|
|
|
|
////pictureBox1.Image = img.ReSizeW(300);
|
|
|
|
|
|
////pictureBox1.Image= img.DrawWatermark(watermark, WatermarkPosition.FullScreenTile, 0,0,20f);
|
2021-06-15 01:41:34 +00:00
|
|
|
|
Public_Config.LoadSetting();
|
2026-06-04 01:39:30 +00:00
|
|
|
|
//Itrycn_Db.CreateTable();
|
2021-06-12 14:09:28 +00:00
|
|
|
|
//var dbver = Itrycn_Db.GetDbVer();
|
|
|
|
|
|
//if(dbver==1) //初始版本,并是当前要求的数据库
|
|
|
|
|
|
//{
|
2020-12-04 09:06:59 +00:00
|
|
|
|
|
2021-06-12 14:09:28 +00:00
|
|
|
|
//}
|
|
|
|
|
|
//else
|
|
|
|
|
|
//{
|
|
|
|
|
|
// MessageBox.Show("不支持当前数据库版本,这可能是以下原因导致的:\r\n1.数据库已损坏;'\r\n2.当前数据库是由新版软件创建的(请更新软件后重试)。", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
|
|
|
|
|
// Application.Exit();
|
|
|
|
|
|
// return;
|
|
|
|
|
|
//}
|
|
|
|
|
|
//IDbInterface db = new SQLiteDataProvider();
|
2025-01-06 03:13:21 +00:00
|
|
|
|
//if (db.ConnDb(@"E:\My Datas\毕方项目\CSharp\ryProcessManager\Bin\Debug\UserDb\MyDb.dat|ry3H3Db") == 1)
|
2021-06-12 14:09:28 +00:00
|
|
|
|
//{
|
|
|
|
|
|
//}
|
|
|
|
|
|
//db.Free();
|
|
|
|
|
|
LiveUpdate.RyUpdate update = new LiveUpdate.RyUpdate(Soft_ConstInfo.Update_Url);
|
|
|
|
|
|
update.CheckUpdate();
|
2026-06-04 01:39:30 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void SuperFileSearch_OnSearchDir(SuperFileSearch sender, System.IO.DirectoryInfo Dirinfo,ref SuperFileSearch.CancelActions Cancel)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (Dirinfo.FullName.IndexOfEx("Config") > 0) { Cancel = SuperFileSearch.CancelActions.CurrentDirectory; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void SuperFileSearch_OnSearchFile(SuperFileSearch sender, System.IO.FileInfo Fileinfo,ref bool AddToResult)
|
|
|
|
|
|
{
|
|
|
|
|
|
//AddToResult = false;
|
2021-02-11 04:04:29 +00:00
|
|
|
|
}
|
2021-06-15 01:41:34 +00:00
|
|
|
|
|
|
|
|
|
|
private void 选项ToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
|
{
|
|
|
|
|
|
FrmSetting frm = new FrmSetting();
|
|
|
|
|
|
if(frm.ShowDialog()==DialogResult.OK)
|
|
|
|
|
|
{
|
|
|
|
|
|
Public_Config.LoadSetting();
|
|
|
|
|
|
}
|
|
|
|
|
|
frm.Dispose();
|
|
|
|
|
|
}
|
2022-02-09 08:56:35 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 日志信息
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class LogInfo
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 日志时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime LogTime { get; set; } = DateTime.Now;
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 日志内容
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string LogText { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 日志Tag
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string LogTag { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 日志文字颜色
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public Color Color { get; set; } = Color.Black;
|
|
|
|
|
|
}
|
2020-12-10 09:01:23 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|