Commit 68a49368 by liulongfei

1. 开场版

2. 底部信息版
3. 天气版
4. 中部信息版
5. 倒计时版
6. 四格人名条版
parent 07671740
......@@ -40,6 +40,11 @@ namespace VIZ.TVP.Golf.Domain
// ====================================================================================
/// <summary>
/// 开场版
/// </summary>
public const string BeginView = "BeginView";
/// <summary>
/// 底部信息版
/// </summary>
public const string BottomInformationView = "BottomInformationView";
......@@ -48,5 +53,20 @@ namespace VIZ.TVP.Golf.Domain
/// 天气版
/// </summary>
public const string WeatherView = "WeatherView";
/// <summary>
/// 中部信息版
/// </summary>
public const string CenterInformationView = "CenterInformationView";
/// <summary>
/// 倒计时版
/// </summary>
public const string Countdown = "Countdown";
/// <summary>
/// 4格人名条
/// </summary>
public const string FourNameBar = "FourNameBar";
}
}
......@@ -3,6 +3,7 @@
<Style x:Key="RadioButton_MainView" TargetType="RadioButton">
<Setter Property="FocusVisualStyle" Value="{x:Null}"></Setter>
<Setter Property="Height" Value="40"></Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
......
......@@ -38,43 +38,37 @@
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<!-- 数据准备 -->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
</Grid.RowDefinitions>
<Border Background="#ff4d449f">
<StackPanel>
<Border Background="#ff4d449f" Height="40">
<TextBlock Text="数据准备" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white"></TextBlock>
</Border>
<RadioButton x:Name="rb_TournamentInfoView" Grid.Row="1" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
<RadioButton x:Name="rb_TournamentInfoView" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
Content="赛事信息" IsChecked="True"></RadioButton>
<RadioButton x:Name="rb_HoleListView" Grid.Row="2" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
<RadioButton x:Name="rb_HoleListView" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
Content="洞信息"></RadioButton>
<RadioButton x:Name="rb_TeamListView" Grid.Row="3" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
<RadioButton x:Name="rb_TeamListView" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
Content="队伍信息"></RadioButton>
<RadioButton x:Name="rb_PlayerListView" Grid.Row="4" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
<RadioButton x:Name="rb_PlayerListView" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
Content="球员信息"></RadioButton>
</Grid>
</StackPanel>
<!-- 包装 -->
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
</Grid.RowDefinitions>
<Border Background="#ff4d449f">
<StackPanel Grid.Row="1">
<Border Background="#ff4d449f" Height="40">
<TextBlock Text="包装" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="White"></TextBlock>
</Border>
<RadioButton x:Name="rb_BottomInformationView" Grid.Row="1" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
<RadioButton x:Name="rb_BeginView" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
Content="开场版"></RadioButton>
<RadioButton x:Name="rb_BottomInformationView" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
Content="底部信息版"></RadioButton>
<RadioButton x:Name="rb_WeatherView" Grid.Row="2" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
<RadioButton x:Name="rb_WeatherView" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
Content="天气版"></RadioButton>
</Grid>
<RadioButton x:Name="rb_CenterInformationView" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
Content="中部信息版"></RadioButton>
<RadioButton x:Name="rb_CountdownView" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
Content="倒计时版"></RadioButton>
<RadioButton x:Name="rb_FourNameBarView" GroupName="MAIN" Style="{StaticResource RadioButton_MainView}"
Content="四格人名条版"></RadioButton>
</StackPanel>
</Grid>
</Border>
<!-- 视图面板 -->
......@@ -90,10 +84,18 @@
<fcommon:NavigationItemControl Key="{x:Static Member=domain:ViewKeys.TournamentInfoView}" ViewType="{x:Type local:PlayerListView}"
IsSelected="{Binding ElementName=rb_PlayerListView,Path=IsChecked,Mode=OneWay}"></fcommon:NavigationItemControl>
<!-- 包装 -->
<fcommon:NavigationItemControl Key="{x:Static Member=domain:ViewKeys.BeginView}" ViewType="{x:Type local:BeginView}"
IsSelected="{Binding ElementName=rb_BeginView,Path=IsChecked,Mode=OneWay}"></fcommon:NavigationItemControl>
<fcommon:NavigationItemControl Key="{x:Static Member=domain:ViewKeys.BottomInformationView}" ViewType="{x:Type local:BottomInformationView}"
IsSelected="{Binding ElementName=rb_BottomInformationView,Path=IsChecked,Mode=OneWay}"></fcommon:NavigationItemControl>
<fcommon:NavigationItemControl Key="{x:Static Member=domain:ViewKeys.WeatherView}" ViewType="{x:Type local:WeatherView}"
IsSelected="{Binding ElementName=rb_WeatherView,Path=IsChecked,Mode=OneWay}"></fcommon:NavigationItemControl>
<fcommon:NavigationItemControl Key="{x:Static Member=domain:ViewKeys.CenterInformationView}" ViewType="{x:Type local:CenterInformationView}"
IsSelected="{Binding ElementName=rb_CenterInformationView,Path=IsChecked,Mode=OneWay}"></fcommon:NavigationItemControl>
<fcommon:NavigationItemControl Key="{x:Static Member=domain:ViewKeys.CenterInformationView}" ViewType="{x:Type local:CountdownView}"
IsSelected="{Binding ElementName=rb_CountdownView,Path=IsChecked,Mode=OneWay}"></fcommon:NavigationItemControl>
<fcommon:NavigationItemControl Key="{x:Static Member=domain:ViewKeys.FourNameBar}" ViewType="{x:Type local:FourNameBarView}"
IsSelected="{Binding ElementName=rb_FourNameBarView,Path=IsChecked,Mode=OneWay}"></fcommon:NavigationItemControl>
</fcommon:NavigationControl>
</Border>
......
<UserControl x:Class="VIZ.TVP.Golf.Module.BeginView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:VIZ.TVP.Golf.Module"
xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
d:Background="White"
d:DataContext="{d:DesignInstance Type=local:BeginViewModel}"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="1200">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/VIZ.TVP.Golf.Module.Resource;component/Style/IconButton/IconButton_Default.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="600"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<!-- 版子操作 -->
<Border Grid.Row="0" Grid.ColumnSpan="2" BorderBrush="#44000000" Background="#66b6f2e3" BorderThickness="1" Margin="5" Padding="5">
<StackPanel Orientation="Horizontal">
<fcommon:IconButton Style="{StaticResource IconButton_Default}"
Icon="/VIZ.TVP.Golf.Module.Resource;component/Icons/up_16x16.png"
Content="上版子"></fcommon:IconButton>
<fcommon:IconButton Style="{StaticResource IconButton_Default}" Margin="5,0,0,0"
Icon="/VIZ.TVP.Golf.Module.Resource;component/Icons/down_16x16.png"
Content="下版子"></fcommon:IconButton>
</StackPanel>
</Border>
<!-- 版子信息 -->
<Border Grid.Row="1" Padding="5" BorderBrush="#44000000" BorderThickness="1" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!-- 第几局 -->
<TextBlock Text="第几局:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="0"></TextBlock>
<toolkit:IntegerUpDown Grid.Column="1" Padding="3" Margin="5" Height="30"
VerticalContentAlignment="Center"
Value="{Binding Path=Round,Mode=TwoWay}"></toolkit:IntegerUpDown>
<!-- 时间 -->
<TextBlock Text="时间:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="1"></TextBlock>
<TextBox Grid.Column="1" Padding="3" AcceptsReturn="True" Margin="5" Height="30"
TextWrapping="NoWrap" VerticalContentAlignment="Center" Grid.Row="1"
Text="{Binding Path=BeginTime,Mode=TwoWay}"></TextBox>
</Grid>
</Border>
<!-- 示意图 -->
<Border Grid.Row="1" Grid.Column="1" Grid.RowSpan="2" Padding="5" BorderBrush="#44000000" BorderThickness="1" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="300"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Image Source="pack://SiteOfOrigin:,,,/images/Begin.jpg" />
<TextBlock Grid.Row="1" Margin="5"></TextBlock>
</Grid>
</Border>
</Grid>
</UserControl>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VIZ.Framework.Core;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// BeginView.xaml 的交互逻辑
/// </summary>
public partial class BeginView : UserControl
{
public BeginView()
{
InitializeComponent();
WPFHelper.BindingViewModel(this, new BeginViewModel());
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.Framework.Core;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// 包装视图模型 -- 开场版
/// </summary>
public class BeginViewModel : PackageViewModelBase
{
public BeginViewModel()
{
}
// ===================================================================================
// Property
// ===================================================================================
#region CurrentRound -- 当前第几局
private int currentRound;
/// <summary>
/// 当前第几局
/// </summary>
public int CurrentRound
{
get { return currentRound; }
set { currentRound = value; this.RaisePropertyChanged(nameof(CurrentRound)); }
}
#endregion
#region BeginTime -- 开始时间
private string beginTime;
/// <summary>
/// 开始时间
/// </summary>
public string BeginTime
{
get { return beginTime; }
set { beginTime = value; this.RaisePropertyChanged(nameof(BeginTime)); }
}
#endregion
// ===================================================================================
// Command
// ===================================================================================
#region SendCommand -- 发送命令
/// <summary>
/// 执行发送命令
/// </summary>
protected override void Send()
{
}
#endregion
}
}
<UserControl x:Class="VIZ.TVP.Golf.Module.CenterInformationView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:VIZ.TVP.Golf.Module"
xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
d:Background="White"
d:DataContext="{d:DesignInstance Type=local:CenterInformationViewModel}"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="1200">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/VIZ.TVP.Golf.Module.Resource;component/Style/IconButton/IconButton_Default.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="600"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<!-- 版子操作 -->
<Border Grid.Row="0" Grid.ColumnSpan="2" BorderBrush="#44000000" Background="#66b6f2e3" BorderThickness="1" Margin="5" Padding="5">
<StackPanel Orientation="Horizontal">
<fcommon:IconButton Style="{StaticResource IconButton_Default}"
Icon="/VIZ.TVP.Golf.Module.Resource;component/Icons/up_16x16.png"
Content="上版子"></fcommon:IconButton>
<fcommon:IconButton Style="{StaticResource IconButton_Default}" Margin="5,0,0,0"
Icon="/VIZ.TVP.Golf.Module.Resource;component/Icons/down_16x16.png"
Content="下版子"></fcommon:IconButton>
</StackPanel>
</Border>
<!-- 版子信息 -->
<Border Grid.Row="1" Padding="5" BorderBrush="#44000000" BorderThickness="1" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!-- 参数人数 -->
<TextBlock Text="参数人数:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="0"></TextBlock>
<toolkit:IntegerUpDown Grid.Column="1" Padding="3" Margin="5" Height="30"
VerticalContentAlignment="Center"
Value="{Binding Path=PlayerCounts,Mode=TwoWay}"></toolkit:IntegerUpDown>
<!-- 总轮次 -->
<TextBlock Text="总轮次:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="1"></TextBlock>
<toolkit:IntegerUpDown Grid.Column="1" Padding="3" Margin="5" Height="30"
VerticalContentAlignment="Center" Grid.Row="1"
Value="{Binding Path=TotalRound,Mode=TwoWay}"></toolkit:IntegerUpDown>
<!-- 总奖金池 -->
<TextBlock Text="总奖金池:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="2"></TextBlock>
<toolkit:DoubleUpDown Grid.Column="1" Padding="3" Margin="5" Height="30"
VerticalContentAlignment="Center" Grid.Row="2"
Text="{Binding Path=TotalPrizeMoney,Mode=TwoWay}"></toolkit:DoubleUpDown>
<!-- 第一名奖金 -->
<TextBlock Text="第一名奖金:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="3"></TextBlock>
<toolkit:DoubleUpDown Grid.Column="1" Padding="3" Margin="5" Height="30"
VerticalContentAlignment="Center" Grid.Row="3"
Text="{Binding Path=FirstPrizeMoney,Mode=TwoWay}"></toolkit:DoubleUpDown>
<!-- 第二名奖金 -->
<TextBlock Text="第二名奖金:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="4"></TextBlock>
<toolkit:DoubleUpDown Grid.Column="1" Padding="3" Margin="5" Height="30"
VerticalContentAlignment="Center" Grid.Row="4"
Text="{Binding Path=SecondPrizeMoney,Mode=TwoWay}"></toolkit:DoubleUpDown>
<!-- 第三名奖金 -->
<TextBlock Text="第三名奖金:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="5"></TextBlock>
<toolkit:DoubleUpDown Grid.Column="1" Padding="3" Margin="5" Height="30"
VerticalContentAlignment="Center" Grid.Row="5"
Text="{Binding Path=ThirdPrizeMoney,Mode=TwoWay}"></toolkit:DoubleUpDown>
</Grid>
</Border>
<!-- 示意图 -->
<Border Grid.Row="1" Grid.Column="1" Grid.RowSpan="2" Padding="5" BorderBrush="#44000000" BorderThickness="1" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="300"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Image Source="pack://SiteOfOrigin:,,,/images/CenterInformation.jpg" />
<TextBlock Grid.Row="1" Margin="5"></TextBlock>
</Grid>
</Border>
</Grid>
</UserControl>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VIZ.Framework.Core;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// CenterInformationView.xaml 的交互逻辑
/// </summary>
public partial class CenterInformationView : UserControl
{
public CenterInformationView()
{
InitializeComponent();
WPFHelper.BindingViewModel(this, new CenterInformationViewModel());
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.Framework.Core;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// 包装视图模型 -- 中间信息版
/// </summary>
public class CenterInformationViewModel : PackageViewModelBase
{
public CenterInformationViewModel()
{
}
// ===================================================================================
// Property
// ===================================================================================
#region PlayerCounts -- 参数人数
private int playerCounts;
/// <summary>
/// 参数人数
/// </summary>
public int PlayerCounts
{
get { return playerCounts; }
set { playerCounts = value; this.RaisePropertyChanged(nameof(PlayerCounts)); }
}
#endregion
#region TotalRound -- 总共几局
private int totalRound;
/// <summary>
/// 总共几局
/// </summary>
public int TotalRound
{
get { return totalRound; }
set { totalRound = value; this.RaisePropertyChanged(nameof(TotalRound)); }
}
#endregion
#region TotalPrizeMoney -- 奖金总额
private double totalPrizeMoney;
/// <summary>
/// 奖金总额
/// </summary>
public double TotalPrizeMoney
{
get { return totalPrizeMoney; }
set { totalPrizeMoney = value; this.RaisePropertyChanged(nameof(TotalPrizeMoney)); }
}
#endregion
#region FirstPrizeMoney -- 第一名奖金
private double firstPrizeMoney;
/// <summary>
/// 第一名奖金
/// </summary>
public double FirstPrizeMoney
{
get { return firstPrizeMoney; }
set { firstPrizeMoney = value; this.RaisePropertyChanged(nameof(FirstPrizeMoney)); }
}
#endregion
#region SecondPrizeMoney -- 第二名奖金
private double secondPrizeMoney;
/// <summary>
/// 第二名奖金
/// </summary>
public double SecondPrizeMoney
{
get { return secondPrizeMoney; }
set { secondPrizeMoney = value; this.RaisePropertyChanged(nameof(SecondPrizeMoney)); }
}
#endregion
#region ThirdPrizeMoney -- 第三名奖金
private double thirdPrizeMoney;
/// <summary>
/// 第三名奖金
/// </summary>
public double ThirdPrizeMoney
{
get { return thirdPrizeMoney; }
set { thirdPrizeMoney = value; this.RaisePropertyChanged(nameof(ThirdPrizeMoney)); }
}
#endregion
// ===================================================================================
// Command
// ===================================================================================
#region SendCommand -- 发送命令
/// <summary>
/// 执行发送命令
/// </summary>
protected override void Send()
{
}
#endregion
}
}
<UserControl x:Class="VIZ.TVP.Golf.Module.CountdownView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:VIZ.TVP.Golf.Module"
xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
d:Background="White"
d:DataContext="{d:DesignInstance Type=local:CountdownViewModel}"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="1200">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/VIZ.TVP.Golf.Module.Resource;component/Style/IconButton/IconButton_Default.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="600"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<!-- 版子操作 -->
<Border Grid.Row="0" Grid.ColumnSpan="2" BorderBrush="#44000000" Background="#66b6f2e3" BorderThickness="1" Margin="5" Padding="5">
<StackPanel Orientation="Horizontal">
<fcommon:IconButton Style="{StaticResource IconButton_Default}"
Icon="/VIZ.TVP.Golf.Module.Resource;component/Icons/up_16x16.png"
Content="上版子"></fcommon:IconButton>
<fcommon:IconButton Style="{StaticResource IconButton_Default}" Margin="5,0,0,0"
Icon="/VIZ.TVP.Golf.Module.Resource;component/Icons/down_16x16.png"
Content="下版子"></fcommon:IconButton>
</StackPanel>
</Border>
<!-- 版子信息 -->
<Border Grid.Row="1" Padding="5" BorderBrush="#44000000" BorderThickness="1" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!-- 文本 -->
<TextBlock Text="文本:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="0"></TextBlock>
<TextBox Grid.Column="1" Padding="3" AcceptsReturn="False" Margin="5" Height="30"
TextWrapping="NoWrap" VerticalContentAlignment="Center"
Text="{Binding Path=Text,Mode=TwoWay}"></TextBox>
<!-- 时间 -->
<TextBlock Text="时间:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="1"></TextBlock>
<toolkit:TimeSpanUpDown Grid.Column="1" Padding="3" Margin="5" Height="30"
VerticalContentAlignment="Center" Grid.Row="1"
Text="{Binding Path=Time,Mode=TwoWay}"></toolkit:TimeSpanUpDown>
</Grid>
</Border>
<!-- 示意图 -->
<Border Grid.Row="1" Grid.Column="1" Grid.RowSpan="2" Padding="5" BorderBrush="#44000000" BorderThickness="1" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="300"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Image Source="pack://SiteOfOrigin:,,,/images/Countdown.jpg" />
<TextBlock Grid.Row="1" Margin="5"></TextBlock>
</Grid>
</Border>
</Grid>
</UserControl>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VIZ.Framework.Core;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// CountdownView.xaml 的交互逻辑
/// </summary>
public partial class CountdownView : UserControl
{
public CountdownView()
{
InitializeComponent();
WPFHelper.BindingViewModel(this, new CountdownViewModel());
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.Framework.Core;
using Xceed.Wpf.Toolkit;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// 包装视图模型 -- 倒计时版
/// </summary>
public class CountdownViewModel : PackageViewModelBase
{
public CountdownViewModel()
{
}
// ===================================================================================
// Property
// ===================================================================================
#region Text -- 文本
private string text;
/// <summary>
/// 文本
/// </summary>
public string Text
{
get { return text; }
set { text = value; this.RaisePropertyChanged(nameof(Text)); }
}
#endregion
#region Time -- 时间
private TimeSpan time;
/// <summary>
/// 时间
/// </summary>
public TimeSpan Time
{
get { return time; }
set { time = value; this.RaisePropertyChanged(nameof(Time)); }
}
#endregion
// ===================================================================================
// Command
// ===================================================================================
#region SendCommand -- 发送命令
/// <summary>
/// 执行发送命令
/// </summary>
protected override void Send()
{
}
#endregion
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// 四格人名条面板键
/// </summary>
public enum FourNameBarPanelKeys
{
/// <summary>
/// 视图 1
/// </summary>
CAM_1,
/// <summary>
/// 视图 2
/// </summary>
CAM_2,
/// <summary>
/// 视图 3
/// </summary>
CAM_3,
/// <summary>
/// 视图 4
/// </summary>
CAM_4
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// 四格人名条面板类型
/// </summary>
public enum FourNameBarPanelType
{
/// <summary>
/// 正常
/// </summary>
Normal,
/// <summary>
/// 选手
/// </summary>
Player
}
}
<UserControl x:Class="VIZ.TVP.Golf.Module.FourNameBarPanel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:VIZ.TVP.Golf.Module"
xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
d:Background="White"
d:DataContext="{d:DesignInstance Type=local:FourNameBarPanelModel}"
mc:Ignorable="d"
d:DesignHeight="400" d:DesignWidth="400">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="80"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!-- 分类 -->
<TextBlock Text="分类:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="0"></TextBlock>
<TextBox Grid.Column="1" Padding="3" AcceptsReturn="False" Margin="5" Height="30"
TextWrapping="NoWrap" VerticalContentAlignment="Center"
Text="{Binding Path=Temperature,Mode=TwoWay}"></TextBox>
<!-- 名字 -->
<TextBlock Text="名字:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="1"></TextBlock>
<TextBox Grid.Column="1" Padding="3" AcceptsReturn="False" Margin="5" Height="30"
TextWrapping="NoWrap" VerticalContentAlignment="Center" Grid.Row="1"
Text="{Binding Path=Wind,Mode=TwoWay}"></TextBox>
<!-- 球队 -->
<TextBlock Text="球队:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="2"></TextBlock>
<TextBox Grid.Column="1" Padding="3" AcceptsReturn="False" Margin="5" Height="30"
TextWrapping="NoWrap" VerticalContentAlignment="Center" Grid.Row="2"
Text="{Binding Path=Wind,Mode=TwoWay}"></TextBox>
<!-- 成绩 -->
<TextBlock Text="成绩:" HorizontalAlignment="Right" VerticalAlignment="Center"
Margin="0,0,10,0" Grid.Row="3"></TextBlock>
<TextBox Grid.Column="1" Padding="3" AcceptsReturn="False" Margin="5" Height="30"
TextWrapping="NoWrap" VerticalContentAlignment="Center" Grid.Row="3"
Text="{Binding Path=Wind,Mode=TwoWay}"></TextBox>
<!-- 信息 -->
<TextBlock Text="信息:" HorizontalAlignment="Right" VerticalAlignment="Top"
Margin="0,10,10,0" Grid.Row="4"></TextBlock>
<TextBox Grid.Column="1" Padding="3" AcceptsReturn="True" Margin="5"
TextWrapping="NoWrap" Grid.Row="4"
Text="{Binding Path=Humidity,Mode=TwoWay}"></TextBox>
</Grid>
</UserControl>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VIZ.Framework.Core;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// FourNameBarPanel.xaml 的交互逻辑
/// </summary>
public partial class FourNameBarPanel : UserControl
{
public FourNameBarPanel()
{
InitializeComponent();
}
}
}
<UserControl x:Class="VIZ.TVP.Golf.Module.FourNameBarView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:VIZ.TVP.Golf.Module"
xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:fcommon="clr-namespace:VIZ.Framework.Common;assembly=VIZ.Framework.Common"
d:Background="White"
d:DataContext="{d:DesignInstance Type=local:FourNameBarViewModel}"
mc:Ignorable="d"
d:DesignHeight="800" d:DesignWidth="1200">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/VIZ.TVP.Golf.Module.Resource;component/Style/IconButton/IconButton_Default.xaml"></ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="600"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="60"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<!-- 版子操作 -->
<Border Grid.Row="0" Grid.ColumnSpan="2" BorderBrush="#44000000" Background="#66b6f2e3" BorderThickness="1" Margin="5" Padding="5">
<StackPanel Orientation="Horizontal">
<fcommon:IconButton Style="{StaticResource IconButton_Default}"
Icon="/VIZ.TVP.Golf.Module.Resource;component/Icons/up_16x16.png"
Content="上版子"></fcommon:IconButton>
<fcommon:IconButton Style="{StaticResource IconButton_Default}" Margin="5,0,0,0"
Icon="/VIZ.TVP.Golf.Module.Resource;component/Icons/down_16x16.png"
Content="下版子"></fcommon:IconButton>
</StackPanel>
</Border>
<!-- 版子信息 -->
<Border Grid.Row="1" Padding="5" BorderBrush="#44000000" BorderThickness="1" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<!-- CAM 1 -->
<GroupBox Header="CAM 1" Padding="5" Margin="5">
<local:FourNameBarPanel DataContext="{Binding Cam1}"></local:FourNameBarPanel>
</GroupBox>
<!-- CAM 2 -->
<GroupBox Header="CAM 2" Padding="5" Margin="5" Grid.Column="1">
<local:FourNameBarPanel DataContext="{Binding Cam2}"></local:FourNameBarPanel>
</GroupBox>
<!-- CAM 3 -->
<GroupBox Header="CAM 3" Padding="5" Margin="5" Grid.Column="0" Grid.Row="1">
<local:FourNameBarPanel DataContext="{Binding Cam3}"></local:FourNameBarPanel>
</GroupBox>
<!-- CAM 4 -->
<GroupBox Header="CAM 4" Padding="5" Margin="5" Grid.Column="1" Grid.Row="1">
<local:FourNameBarPanel DataContext="{Binding Cam4}"></local:FourNameBarPanel>
</GroupBox>
</Grid>
</Border>
<!-- 示意图 -->
<Border Grid.Row="1" Grid.Column="1" Grid.RowSpan="2" Padding="5" BorderBrush="#44000000" BorderThickness="1" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="300"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Image Source="pack://SiteOfOrigin:,,,/images/FourNameBar.jpg" />
<TextBlock Grid.Row="1" Margin="5"></TextBlock>
</Grid>
</Border>
</Grid>
</UserControl>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using VIZ.Framework.Core;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// FourNameBarView.xaml 的交互逻辑
/// </summary>
public partial class FourNameBarView : UserControl
{
public FourNameBarView()
{
InitializeComponent();
WPFHelper.BindingViewModel(this, new FourNameBarViewModel());
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.Framework.Core;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// 四格人名条面板模型
/// </summary>
public class FourNameBarPanelModel : ModelBase
{
#region PanelKey -- 面板键
private FourNameBarPanelKeys panelKey;
/// <summary>
/// 面板键
/// </summary>
public FourNameBarPanelKeys PanelKey
{
get { return panelKey; }
set { panelKey = value; this.RaisePropertyChanged(nameof(PanelKey)); }
}
#endregion
#region PanelType -- 面板类型
private FourNameBarPanelType panelType;
/// <summary>
/// 面板类型
/// </summary>
public FourNameBarPanelType PanelType
{
get { return panelType; }
set { panelType = value; this.RaisePropertyChanged(nameof(PanelType)); }
}
#endregion
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.Framework.Core;
namespace VIZ.TVP.Golf.Module
{
/// <summary>
/// 包装视图模型 -- 四格人名条
/// </summary>
public class FourNameBarViewModel : PackageViewModelBase
{
public FourNameBarViewModel()
{
}
// ===================================================================================
// Property
// ===================================================================================
#region Cam1 -- 视图1面板模型
private FourNameBarPanelModel cam1 = new FourNameBarPanelModel();
/// <summary>
/// 视图1面板模型
/// </summary>
public FourNameBarPanelModel Cam1
{
get { return cam1; }
set { cam1 = value; this.RaisePropertyChanged(nameof(Cam1)); }
}
#endregion
#region Cam2 -- 视图2面板模型
private FourNameBarPanelModel cam2 = new FourNameBarPanelModel();
/// <summary>
/// 视图2面板模型
/// </summary>
public FourNameBarPanelModel Cam2
{
get { return cam2; }
set { cam2 = value; this.RaisePropertyChanged(nameof(Cam2)); }
}
#endregion
#region Cam3 -- 视图3面板模型
private FourNameBarPanelModel cam3 = new FourNameBarPanelModel();
/// <summary>
/// 视图3面板模型
/// </summary>
public FourNameBarPanelModel Cam3
{
get { return cam3; }
set { cam3 = value; this.RaisePropertyChanged(nameof(Cam3)); }
}
#endregion
#region Cam4 -- 视图4面板模型
private FourNameBarPanelModel cam4 = new FourNameBarPanelModel();
/// <summary>
/// 视图4面板模型
/// </summary>
public FourNameBarPanelModel Cam4
{
get { return cam4; }
set { cam4 = value; this.RaisePropertyChanged(nameof(Cam4)); }
}
#endregion
// ===================================================================================
// Command
// ===================================================================================
#region SendCommand -- 发送命令
/// <summary>
/// 执行发送命令
/// </summary>
protected override void Send()
{
}
#endregion
}
}
......@@ -90,6 +90,10 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Page Include="Package\Begin\View\BeginView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Package\BottomInformation\View\BottomInformationView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
......@@ -110,6 +114,22 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Package\CenterInformation\View\CenterInformationView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Package\Countdown\View\CountdownView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Package\FourNameBar\View\FourNameBarPanel.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Package\FourNameBar\View\FourNameBarView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Package\Weather\View\WeatherView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
......@@ -124,6 +144,10 @@
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="Package\Begin\ViewModel\BeginViewModel.cs" />
<Compile Include="Package\Begin\View\BeginView.xaml.cs">
<DependentUpon>BeginView.xaml</DependentUpon>
</Compile>
<Compile Include="Package\BottomInformation\ViewModel\BottomInformationViewModel.cs" />
<Compile Include="Package\BottomInformation\View\BottomInformationView.xaml.cs">
<DependentUpon>BottomInformationView.xaml</DependentUpon>
......@@ -147,7 +171,25 @@
<DependentUpon>PlayerListView.xaml</DependentUpon>
</Compile>
<Compile Include="Information\Player\ViewModel\PlayerListViewModel.cs" />
<Compile Include="Package\FourNameBar\Enum\FourNameBarPanelKeys.cs" />
<Compile Include="Package\FourNameBar\Enum\FourNameBarPanelType.cs" />
<Compile Include="Package\FourNameBar\ViewModel\FourNameBarPanelModel.cs" />
<Compile Include="Package\FourNameBar\View\FourNameBarPanel.xaml.cs">
<DependentUpon>FourNameBarPanel.xaml</DependentUpon>
</Compile>
<Compile Include="Package\PackageViewModelBase.cs" />
<Compile Include="Package\CenterInformation\ViewModel\CenterInformationViewModel.cs" />
<Compile Include="Package\CenterInformation\View\CenterInformationView.xaml.cs">
<DependentUpon>CenterInformationView.xaml</DependentUpon>
</Compile>
<Compile Include="Package\Countdown\ViewModel\CountdownViewModel.cs" />
<Compile Include="Package\Countdown\View\CountdownView.xaml.cs">
<DependentUpon>CountdownView.xaml</DependentUpon>
</Compile>
<Compile Include="Package\FourNameBar\ViewModel\FourNameBarViewModel.cs" />
<Compile Include="Package\FourNameBar\View\FourNameBarView.xaml.cs">
<DependentUpon>FourNameBarView.xaml</DependentUpon>
</Compile>
<Compile Include="Package\Weather\ViewModel\WeatherViewModel.cs" />
<Compile Include="Package\Weather\View\WeatherView.xaml.cs">
<DependentUpon>WeatherView.xaml</DependentUpon>
......
......@@ -208,5 +208,25 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="images\begin.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="images\CenterInformation.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="images\Countdown.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="images\FourNameBar.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment