@@ -30,7 +30,7 @@ public MainForm()
30
30
_timer1 . Tick += timer1_Tick ;
31
31
_timer2 . Interval = 200 ;
32
32
_timer2 . Tick += timer2_Tick ;
33
- this . Text = Constant . MainWindowTitle ;
33
+ this . Text = Constants . MainWindowTitle ;
34
34
this . Icon = DreamScene2 . Properties . Resources . AppIcon ;
35
35
notifyIcon1 . Icon = this . Icon ;
36
36
toolStripMenuItem3 . Checked = checkMute . Checked = _settings . IsMuted ;
@@ -69,7 +69,7 @@ void OpenFile(string path)
69
69
{
70
70
if ( ! File . Exists ( path ) )
71
71
{
72
- MessageBox . Show ( $ "找不到文件 \" { path } \" ", Constant . ProjectName ) ;
72
+ MessageBox . Show ( $ "找不到文件 \" { path } \" ", Constants . ProjectName ) ;
73
73
return ;
74
74
}
75
75
@@ -119,7 +119,7 @@ void OpenWeb(string url)
119
119
{
120
120
if ( ! WebWindow . TryGetWebView2Version ( out _ ) )
121
121
{
122
- MessageBox . Show ( "打开网页功能需要 WebView2 支持。请在托盘图标找到 DreamScene2 然后右键菜单,依次点击 [打开 URL] > [安装 WebView2...] 安装。" , Constant . ProjectName ) ;
122
+ MessageBox . Show ( $ "打开网页功能需要 WebView2 支持。请在托盘图标找到 { Constants . ProjectName } 然后右键菜单,依次点击 [打开 URL] > [安装 WebView2...] 安装。", Constants . ProjectName ) ;
123
123
return ;
124
124
}
125
125
@@ -286,7 +286,7 @@ private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
286
286
287
287
if ( _settings . FirstRun )
288
288
{
289
- notifyIcon1 . ShowBalloonTip ( 1000 , "" , "DreamScene2 已被最小化到系统托盘。 ", ToolTipIcon . None ) ;
289
+ notifyIcon1 . ShowBalloonTip ( 1000 , "" , $ " { Constants . ProjectName } 已被最小化到系统托盘", ToolTipIcon . None ) ;
290
290
_settings . FirstRun = false ;
291
291
}
292
292
}
0 commit comments