mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-05 00:45:51 +08:00
fix: 编辑停站时检票口检查
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
mc:Ignorable="d"
|
||||
Title="StationStopDialog"
|
||||
WindowStyle="None" FontFamily="Microsoft YaHei"
|
||||
SizeToContent="WidthAndHeight"
|
||||
MaxWidth="562" MinWidth="562" MaxHeight="551.77" MinHeight="551.77"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
<Grid Background="{DynamicResource SolidBackgroundFillColorQuarternaryBrush}">
|
||||
<Grid.RowDefinitions>
|
||||
|
||||
@@ -191,13 +191,13 @@ namespace CRSim.Views
|
||||
(!EndHour.IsEnabled || ValidateTime(EndHour.Text, 24)) &&
|
||||
(!EndMinute.IsEnabled || ValidateTime(EndMinute.Text, 60));
|
||||
|
||||
// 当所有条件满足时,启用 AccentButton
|
||||
AccentButton.IsEnabled =
|
||||
(!TicketChecksCheckList.IsEnabled || TicketChecksList.Any(x => x.Checked)) &&
|
||||
areTextBoxesFilled &&
|
||||
!string.IsNullOrWhiteSpace(NumberTextBox.Text) &&
|
||||
!string.IsNullOrWhiteSpace(ArrivalTextBox.Text) &&
|
||||
!string.IsNullOrWhiteSpace(DepartureTextBox.Text) &&
|
||||
int.TryParse(LengthTextBox.Text,out int i) && i > 0 &&
|
||||
int.TryParse(LengthTextBox.Text, out int i) && i > 0 &&
|
||||
PlatformComboBox.SelectedItem != null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user