File tree Expand file tree Collapse file tree 7 files changed +7
-6
lines changed Expand file tree Collapse file tree 7 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11#region
22
33using Avalonia . Controls ;
4+ using NLog ;
45using SmartTrainApplication . Data ;
56
67#endregion
78
89namespace SmartTrainApplication . Views ;
910
1011public 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 }
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ( ) {
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments