diff --git a/CalendarNotepad/WorkMain.cs b/CalendarNotepad/WorkMain.cs index c73d615..86fa39b 100644 --- a/CalendarNotepad/WorkMain.cs +++ b/CalendarNotepad/WorkMain.cs @@ -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;