mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-12 04:35:39 +08:00
@@ -33,17 +33,24 @@ namespace CRSim.ScreenSimulator.Views
|
||||
|
||||
private void DecreaseSpeed(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
_timeService.Speed /= 2 ;
|
||||
SpeedText.Text = _timeService.Speed.ToString()+"x" ;
|
||||
if (_timeService.Speed > 0.25 && _timeService.Speed <= 1024)
|
||||
{
|
||||
_timeService.Speed /= 2;
|
||||
SpeedText.Text = _timeService.Speed.ToString() + "x";
|
||||
}
|
||||
}
|
||||
private void IncreaseSpeed(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
_timeService.Speed *= 2;
|
||||
SpeedText.Text = _timeService.Speed.ToString() + "x";
|
||||
if (_timeService.Speed >= 0.25 && _timeService.Speed < 1024)
|
||||
{
|
||||
_timeService.Speed *= 2;
|
||||
SpeedText.Text = _timeService.Speed.ToString() + "x";
|
||||
}
|
||||
}
|
||||
|
||||
private void Close(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ public partial class StationManagementPageViewModel : ObservableObject
|
||||
});
|
||||
}
|
||||
|
||||
#region Station
|
||||
#region Station
|
||||
public void RefreshStations()
|
||||
{
|
||||
var stationsList = _databaseService.GetAllStations();
|
||||
|
||||
Reference in New Issue
Block a user