Skip to content

Commit 8f714e2

Browse files
author
Jere Liimatainen
committed
Increased version number to v.2.4.0.
1 parent b3ecbdd commit 8f714e2

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

Settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"SimulationDirectories": [
1212
"C:\\Users\\thear\\source\\repos\\START\\START-data\\Simulations"
1313
],
14-
"VersionNumber": "2.3.0.0"
14+
"VersionNumber": "2.4.0.0"
1515
}

SmartTrainApplication.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
77
<ApplicationManifest>app.manifest</ApplicationManifest>
88
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
9-
<Version>2.3.0.0</Version>
9+
<Version>2.4.0.0</Version>
1010
<ApplicationIcon>Assets\start.ico</ApplicationIcon>
1111
<Title>START</Title>
1212
</PropertyGroup>

Views/MainWindowViewModel.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
#region
22

33
using Avalonia.Controls;
4+
using NLog;
45
using SmartTrainApplication.Data;
56

67
#endregion
78

89
namespace SmartTrainApplication.Views;
910

1011
public class MainWindowViewModel : ViewModelBase {
12+
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
13+
1114
private UserControl _currentView = new RouteEditorView { DataContext = new RouteEditorViewModel() };
1215
private UserControl _bottomBar = new BottomBarView { DataContext = new BottomBarViewModel() };
1316

1417
public UserControl CurrentView {
1518
get => _currentView;
1619
set {
1720
if (_currentView != value) {
21+
Logger.Trace($"Changing current view from {_currentView} to {value}");
1822
_currentView = value;
1923
RaisePropertyChanged(nameof(CurrentView));
2024
}

Views/RouteEditorViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ public bool ConfirmButtonEnabled {
148148
public bool AddingNew { get; set; }
149149

150150
public RouteEditorViewModel() {
151-
Logger.Debug("RouteEditorViewModel");
152151

153152
if (DataManager.TrainRoutes.Count == 0)
154153
LayerManager.ImportNewRoute(SettingsManager.CurrentSettings.RouteDirectories);

Views/SettingsViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public SettingsViewModel() {
4646
// Switch view in file manager
4747
// TODO make this better...
4848
FileManager.CurrentView = "Settings";
49-
Logger.Debug($"Current view: {FileManager.CurrentView}");
5049
}
5150

5251
public void ResetButton() {

Views/SimulationViewModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ public SimulationViewModel() {
117117

118118
// Switch view in file manager
119119
FileManager.CurrentView = "Simulation";
120-
Logger.Debug($"Current view: {FileManager.CurrentView}");
121120
LayerManager.ClearFocusedStopsLayer();
122121

123122
CreateSimulationButtonEnabled = true;

app.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!-- This manifest is used on Windows only.
44
Don't remove it as it might cause problems with window transparency and embeded controls.
55
For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests -->
6-
<assemblyIdentity version="2.3.0.0" name="SmartTrainApplication.Desktop"/>
6+
<assemblyIdentity version="2.4.0.0" name="SmartTrainApplication.Desktop"/>
77

88
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
99
<application>

0 commit comments

Comments
 (0)