mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-06 01:06:27 +08:00
release: 3.1.0.0 [skip cliff]
This commit is contained in:
@@ -8,6 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<Platform>x64</Platform>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<PublishDir>bin\\publish\</PublishDir>
|
||||
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
|
||||
<SelfContained>false</SelfContained>
|
||||
<Configuration>Release</Configuration>
|
||||
<TargetFramework>net9.0-windows10.0.19041.0</TargetFramework>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CRSim.Core.Models;
|
||||
using CRSim.Core.Models;
|
||||
|
||||
namespace CRSim.Views;
|
||||
public sealed partial class TrainNumberStopDialog : Page
|
||||
@@ -99,19 +99,19 @@ public sealed partial class TrainNumberStopDialog : Page
|
||||
string selectedType = rb.SelectedItem as string;
|
||||
switch (selectedType)
|
||||
{
|
||||
case "ʼ·¢Õ¾":
|
||||
case "始发站":
|
||||
StartHour.IsEnabled = false;
|
||||
StartMinute.IsEnabled = false;
|
||||
EndHour.IsEnabled = true;
|
||||
EndMinute.IsEnabled = true;
|
||||
break;
|
||||
case "ÖмäÕ¾":
|
||||
case "中间站":
|
||||
StartHour.IsEnabled = true;
|
||||
StartMinute.IsEnabled = true;
|
||||
EndHour.IsEnabled = true;
|
||||
EndMinute.IsEnabled = true;
|
||||
break;
|
||||
case "ÖÕµ½Õ¾":
|
||||
case "终到站":
|
||||
StartHour.IsEnabled = true;
|
||||
StartMinute.IsEnabled = true;
|
||||
EndHour.IsEnabled = false;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using CRSim.Core.Models;
|
||||
using CRSim.Core.Models;
|
||||
|
||||
namespace CRSim.Views;
|
||||
public sealed partial class TrainStopDialog : Page
|
||||
{
|
||||
public TrainStop GeneratedTrainStop;
|
||||
|
||||
public List<string> Landmarks { get; set; } = ["无", "红色", "绿色", "褐色", "蓝色", "紫色", "黄色", "橙色"];
|
||||
public List<string> Landmarks { get; set; } = ["无", "红色", "绿色", "褐色", "蓝色", "紫色", "黄色", "橙色"];
|
||||
|
||||
public List<string> Platforms { get; set; } = [];
|
||||
|
||||
@@ -38,7 +38,7 @@ public sealed partial class TrainStopDialog : Page
|
||||
ArrivalTextBox.Text = trainStop.Terminal;
|
||||
DepartureTextBox.Text = trainStop.Origin;
|
||||
PlatformComboBox.SelectedItem = trainStop.Platform;
|
||||
LandmarkComboBox.SelectedItem = trainStop.Landmark ?? "无";
|
||||
LandmarkComboBox.SelectedItem = trainStop.Landmark ?? "无";
|
||||
if (trainStop.ArrivalTime.HasValue)
|
||||
{
|
||||
StartHour.Text = trainStop.ArrivalTime.Value.Hours.ToString("D2");
|
||||
@@ -139,7 +139,7 @@ public sealed partial class TrainStopDialog : Page
|
||||
.Select(x => x.Id)] : null,
|
||||
Platform = (string)PlatformComboBox.SelectedItem,
|
||||
Length = int.Parse(LengthTextBox.Text),
|
||||
Landmark = (string)LandmarkComboBox.SelectedItem == "无" ? null : (string)LandmarkComboBox.SelectedItem,
|
||||
Landmark = (string)LandmarkComboBox.SelectedItem == "无" ? null : (string)LandmarkComboBox.SelectedItem,
|
||||
Status = SuspendToggleSwitch.IsOn ? null : TimeSpan.FromMinutes(int.Parse(StatusTextBox.Text))
|
||||
};
|
||||
}
|
||||
@@ -152,21 +152,21 @@ public sealed partial class TrainStopDialog : Page
|
||||
string selectedType = rb.SelectedItem as string;
|
||||
switch (selectedType)
|
||||
{
|
||||
case "始发站":
|
||||
case "始发站":
|
||||
StartHour.IsEnabled = false;
|
||||
StartMinute.IsEnabled = false;
|
||||
EndHour.IsEnabled = true;
|
||||
EndMinute.IsEnabled = true;
|
||||
WaitingAreasList.IsEnabled = true;
|
||||
break;
|
||||
case "中间站":
|
||||
case "中间站":
|
||||
StartHour.IsEnabled = true;
|
||||
StartMinute.IsEnabled = true;
|
||||
EndHour.IsEnabled = true;
|
||||
EndMinute.IsEnabled = true;
|
||||
WaitingAreasList.IsEnabled = true;
|
||||
break;
|
||||
case "终到站":
|
||||
case "终到站":
|
||||
StartHour.IsEnabled = true;
|
||||
StartMinute.IsEnabled = true;
|
||||
EndHour.IsEnabled = false;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace CRSim.Views
|
||||
{
|
||||
public sealed partial class StartWindow : Window, INotifyPropertyChanged
|
||||
{
|
||||
// ÉùÃ÷ʼþ
|
||||
// 声明事件
|
||||
public string AppVersion { get; set; } = App.AppVersion;
|
||||
|
||||
private string _status = "ÕýÔÚÆô¶¯...";
|
||||
private string _status = "正在启动...";
|
||||
public string Status
|
||||
{
|
||||
get => _status;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<Version>3.0.1.0</Version>
|
||||
<Version>3.1.0.0</Version>
|
||||
<Authors>电排骨</Authors>
|
||||
<RepositoryUrl>https://github.com/denglihong2007/CRSim</RepositoryUrl>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user