File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 20
20
*
21
21
* Author : Mikhail Shiryaev
22
22
* Created : 2019
23
- * Modified : 2023
23
+ * Modified : 2024
24
24
*/
25
25
26
+ using System . Reflection ;
27
+
26
28
namespace Scada . Admin . App . Code
27
29
{
28
30
/// <summary>
@@ -31,6 +33,10 @@ namespace Scada.Admin.App.Code
31
33
/// </summary>
32
34
internal static class AppUtils
33
35
{
36
+ /// <summary>
37
+ /// The application version.
38
+ /// </summary>
39
+ public static readonly string AppVersion = Assembly . GetExecutingAssembly ( ) . GetName ( ) . Version . ToString ( ) ;
34
40
/// <summary>
35
41
/// The hyperlink to the documentation.
36
42
/// </summary>
Original file line number Diff line number Diff line change 20
20
*
21
21
* Author : Mikhail Shiryaev
22
22
* Created : 2010
23
- * Modified : 2021
23
+ * Modified : 2024
24
24
*/
25
25
26
26
using Scada . Admin . App . Code ;
@@ -80,14 +80,14 @@ private void Init()
80
80
activePictureBox = pbAboutRu ;
81
81
pbAboutEn . Visible = false ;
82
82
lblVersionEn . Visible = false ;
83
- lblVersionRu . Text = "Версия " + AdminUtils . AppVersion ;
83
+ lblVersionRu . Text = "Версия " + AppUtils . AppVersion ;
84
84
}
85
85
else
86
86
{
87
87
activePictureBox = pbAboutEn ;
88
88
pbAboutRu . Visible = false ;
89
89
lblVersionRu . Visible = false ;
90
- lblVersionEn . Text = "Version " + AdminUtils . AppVersion ;
90
+ lblVersionEn . Text = "Version " + AppUtils . AppVersion ;
91
91
}
92
92
93
93
// load image and hyperlink from files if the files exist
Original file line number Diff line number Diff line change 20
20
*
21
21
* Author : Mikhail Shiryaev
22
22
* Created : 2018
23
- * Modified : 2022
23
+ * Modified : 2024
24
24
*/
25
25
26
26
using System . Reflection ;
@@ -34,9 +34,9 @@ namespace Scada.Admin
34
34
public static class AdminUtils
35
35
{
36
36
/// <summary>
37
- /// The application version.
37
+ /// The basic version of the application .
38
38
/// </summary>
39
- public static readonly string AppVersion = Assembly . GetExecutingAssembly ( ) . GetName ( ) . Version . ToString ( ) ;
39
+ public static readonly string BasicVersion = Assembly . GetExecutingAssembly ( ) . GetName ( ) . Version . ToString ( ) ;
40
40
/// <summary>
41
41
/// The application log file name.
42
42
/// </summary>
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ public void Save(string fileName)
249
249
xmlDoc . AppendChild ( xmlDecl ) ;
250
250
251
251
XmlElement rootElem = xmlDoc . CreateElement ( "ScadaProject" ) ;
252
- rootElem . AppendElem ( "AdminVersion" , AdminUtils . AppVersion ) ;
252
+ rootElem . AppendElem ( "AdminVersion" , AdminUtils . BasicVersion ) ;
253
253
rootElem . AppendElem ( "ProjectVersion" , Version ) ;
254
254
rootElem . AppendElem ( "Description" , Description ) ;
255
255
xmlDoc . AppendChild ( rootElem ) ;
You can’t perform that action at this time.
0 commit comments