增加版本显示

This commit is contained in:
Falcon 2024-10-08 11:10:41 +08:00
parent f5f5bac98a
commit 7f61ee3fb3

View File

@ -3,6 +3,7 @@ using CalendarNotepad.Models;
using Microsoft.VisualBasic;
using SqlSugar;
using System.Diagnostics;
using System.Reflection;
namespace CalendarNotepad
{
@ -12,6 +13,11 @@ namespace CalendarNotepad
public WorkMain() {
InitializeComponent();
string version = Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "";
version = version == "" ? "" : $"({version})";
this.Text = $"工作日志记录{version}";
this.rtbMsg.EnableAutoDragDrop = true;
this.OnDataReset();
this.rtbMsg.TextChanged += RtbMsg_TextChanged;