diff --git a/CRSim.ScreenSimulator/Assets/DezhouDong/PrimaryScreen.png b/CRSim.ScreenSimulator/Assets/DezhouDong/PrimaryScreen.png new file mode 100644 index 0000000..d7da84b Binary files /dev/null and b/CRSim.ScreenSimulator/Assets/DezhouDong/PrimaryScreen.png differ diff --git a/CRSim.ScreenSimulator/CRSim.ScreenSimulator.csproj b/CRSim.ScreenSimulator/CRSim.ScreenSimulator.csproj index 4aee3f4..d40ee6b 100644 --- a/CRSim.ScreenSimulator/CRSim.ScreenSimulator.csproj +++ b/CRSim.ScreenSimulator/CRSim.ScreenSimulator.csproj @@ -111,6 +111,7 @@ + diff --git a/CRSim.ScreenSimulator/Models/StylesInfoData.json b/CRSim.ScreenSimulator/Models/StylesInfoData.json index a1630d7..bd01782 100644 --- a/CRSim.ScreenSimulator/Models/StylesInfoData.json +++ b/CRSim.ScreenSimulator/Models/StylesInfoData.json @@ -378,5 +378,15 @@ "Platform", "Location" ] + }, + { + "UniqueId": "DezhouDong.PrimaryScreen", + "Title": "德州东站主要看板", + "Region": "德州", + "Author": "wxl0430", + "Type": "车站大屏", + "Parameters": [ + "Station" + ] } ] \ No newline at end of file diff --git a/CRSim.ScreenSimulator/ViewModels/DezhouDong/PrimaryScreenViewModel.cs b/CRSim.ScreenSimulator/ViewModels/DezhouDong/PrimaryScreenViewModel.cs new file mode 100644 index 0000000..7ef549a --- /dev/null +++ b/CRSim.ScreenSimulator/ViewModels/DezhouDong/PrimaryScreenViewModel.cs @@ -0,0 +1,15 @@ +using CRSim.Core.Models; +using CRSim.Core.Services; +namespace CRSim.ScreenSimulator.ViewModels.DezhouDong +{ + public class PrimaryScreenViewModel : ScreenViewModel + { + public PrimaryScreenViewModel(ITimeService timeService, ISettingsService settingsService) + : base(timeService, settingsService) + { + ItemsPerPage = 10; + PageCount = 1; + StationType = StationType.Departure; + } + } +} diff --git a/CRSim.ScreenSimulator/Views/DezhouDong/PrimaryScreenView.xaml b/CRSim.ScreenSimulator/Views/DezhouDong/PrimaryScreenView.xaml new file mode 100644 index 0000000..bb95a69 --- /dev/null +++ b/CRSim.ScreenSimulator/Views/DezhouDong/PrimaryScreenView.xaml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CRSim.ScreenSimulator/Views/DezhouDong/PrimaryScreenView.xaml.cs b/CRSim.ScreenSimulator/Views/DezhouDong/PrimaryScreenView.xaml.cs new file mode 100644 index 0000000..0853676 --- /dev/null +++ b/CRSim.ScreenSimulator/Views/DezhouDong/PrimaryScreenView.xaml.cs @@ -0,0 +1,14 @@ +using CRSim.ScreenSimulator.ViewModels.DezhouDong; +namespace CRSim.ScreenSimulator.Views.DezhouDong +{ + public partial class PrimaryScreenView : BaseScreenView + { + public PrimaryScreenViewModel ViewModel { get; } + public PrimaryScreenView(PrimaryScreenViewModel viewModel) + { + InitializeComponent(); + ViewModel = viewModel; + DataContext = viewModel; + } + } +}