Skip to content

Commit

Permalink
1.1.8更新
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceTimee committed Jul 25, 2021
1 parent 6aa3445 commit 1f3e009
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
18 changes: 17 additions & 1 deletion Forms/AboutForm.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics;
using System;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;

Expand All @@ -11,6 +12,17 @@ public static class Define
public const string MAINPAGE_URL = "https://www.spacetimee.xyz/";
public const string OPENSOURCE_URL = "https://github.com/SpaceTimee/Vight-Note";
public const string EMAIL = "[email protected]";

public static readonly string[] TIPS = new string[]
{
"你用过.vtxt文件吗?", "试试把文件拖进来吧", "锁定输入也会锁定热键", "求求别用Ctrl+Alt+E了", "亲,给个Star呗~",
"咕咕咕", "6月31日打开会有惊喜", "你在看我吗(⁄ ⁄•⁄ω⁄•⁄ ⁄)", "Vight是姓,Note是名" ,"Error: 404 Not Found",
"窗口太小了? 那就把它拉长","❤", "I am simply a note", "关于: 关于:","•ᴗ•",
"便签也需要休息呢","(。・ω・。)ノ♡" ,"Ciallo~(∠・ω< )⌒★","住在电脑里也很舒服呢~","便签和人类是两个物种",
"我不吃饭,我吃电", "胡萝卜是什么味道的呢?","棒棒糖是什么味道的呢?","外面的世界是什么样的?","(๑• . •๑)",
"更新失败就多试几次吧","主...主人?","轻模式是个好东西","?","你见过多少条关于呢?",
"试试用Esc键关闭弹窗吧"
};
}

public AboutForm(bool isDarkMode)
Expand All @@ -22,6 +34,10 @@ public AboutForm(bool isDarkMode)

//显示版本号
VersionLabel.Text = "版本号: " + Application.ProductVersion;

//显示随机tip
Random random = new Random((int)DateTime.Now.Ticks & 0x0000FFFF);
Text = $"关于: {Define.TIPS[random.Next(0, 31)]}";
}
private void CheckDarkMode(bool isDarkMode)
{
Expand Down
9 changes: 2 additions & 7 deletions Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ private void Update_Click(object sender, EventArgs e)
}
private void About_Click(object sender, EventArgs e)
{
AboutMe();
AboutForm aboutForm = new AboutForm(DarkMode.Checked);
aboutForm.ShowDialog();
}
private void WhatIsLiteMode_Click(object sender, EventArgs e)
{
Expand Down Expand Up @@ -560,11 +561,5 @@ private async Task<bool> CheckConnect()

return true; //连接成功
}
//项目信息
private void AboutMe()
{
AboutForm aboutForm = new AboutForm(DarkMode.Checked);
aboutForm.ShowDialog();
}
}
}
Binary file modified Resources/Run.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Translate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1f3e009

Please sign in to comment.