提交记录修改UI/App.xaml.cs+4 −1看文件
修改UI/Resources/Icons/tai.ico看文件 新增UI/Resources/Icons/tai32.ico看文件
| @@ -7,6 +7,7 @@ using System.Configuration; | ||
| 7 | 7 | using System.Data; |
| 8 | 8 | using System.Diagnostics; |
| 9 | 9 | using System.Drawing; |
| 10 | 新增:using System.IO; | |
| 10 | 11 | using System.Linq; |
| 11 | 12 | using System.Threading.Tasks; |
| 12 | 13 | using System.Windows; |
| @@ -72,7 +73,9 @@ namespace UI | ||
| 72 | 73 | |
| 73 | 74 | statusBarIcon = new System.Windows.Forms.NotifyIcon(); |
| 74 | 75 | statusBarIcon.Text = "Tai!"; |
| 75 | 删除: statusBarIcon.Icon = System.Drawing.Icon.ExtractAssociatedIcon(System.Reflection.Assembly.GetEntryAssembly().ManifestModule.Name); | |
| 76 | 新增: Stream iconStream = GetResourceStream(new Uri("pack://application:,,,/Tai;component/Resources/Icons/tai32.ico")).Stream; | |
| 77 | 新增: statusBarIcon.Icon = new Icon(iconStream); | |
| 78 | 新增: //statusBarIcon.Icon = System.Drawing.Icon.ExtractAssociatedIcon(System.Reflection.Assembly.GetEntryAssembly().ManifestModule.Name); | |
| 76 | 79 | |
| 77 | 80 | statusBarIcon.Visible = true; |
| 78 | 81 | statusBarIcon.MouseClick += NotifyIcon_MouseClick; |
二进制文件,不显示改动。
二进制文件,不显示改动。

