mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
368 lines
30 KiB
XML
368 lines
30 KiB
XML
<pu:WindowX x:Class="VPet_Simulator.Windows.winWorkMenu"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:pu="https://opensource.panuon.com/wpf-ui"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" Foreground="{StaticResource PrimaryText}"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
|
|
xmlns:local="clr-namespace:VPet_Simulator.Windows" mc:Ignorable="d" Title="{ll:Str 工作面板}" Height="375"
|
|
Style="{DynamicResource BaseWindowXStyle}" Background="{DynamicResource PrimaryLighter}" Width="650"
|
|
ResizeMode="CanMinimize" Closed="Window_Closed">
|
|
<pu:WindowX.Resources>
|
|
<Style x:Key="IconButtonStyle" TargetType="Button" BasedOn="{StaticResource {x:Static pu:StyleKeys.ButtonStyle}}">
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="#BABABA" />
|
|
<Setter Property="FontFamily" Value="{StaticResource RemixIcon}" />
|
|
<Setter Property="pu:ButtonHelper.HoverForeground" Value="{DynamicResource DARKPrimary}" />
|
|
<Setter Property="pu:ButtonHelper.HoverBackground" Value="{x:Null}" />
|
|
<Setter Property="pu:ButtonHelper.ClickBackground" Value="{x:Null}" />
|
|
</Style>
|
|
<local:ScheduleItemTemplateSelector x:Key="ScheduleItemTemplateSelector" />
|
|
</pu:WindowX.Resources>
|
|
<Grid>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="140" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Border Background="{DynamicResource DARKPrimaryText}" />
|
|
<StackPanel Margin="12, 10">
|
|
<TextBlock Text="{ll:Str 工作面板}" FontSize="18" Margin="5" Foreground="{DynamicResource DARKPrimary}" />
|
|
|
|
<ListBox x:Name="LsbCategory" Grid.Row="1" Margin="-12,10,-12,0" Background="Transparent"
|
|
BorderThickness="0" SelectedIndex="0" pu:ListBoxHelper.ItemsPadding="15,8"
|
|
pu:ListBoxHelper.ItemsSelectedBackground="{DynamicResource DARKPrimary}"
|
|
pu:ListBoxHelper.ItemsSelectedForeground="{DynamicResource DARKPrimaryText}"
|
|
SelectionChanged="LsbCategory_SelectionChanged">
|
|
<ListBoxItem x:Name="LsbiWork" Content="{ll:Str '工作'}" />
|
|
<ListBoxItem x:Name="LsbiStudy" Content="{ll:Str '学习'}" />
|
|
<ListBoxItem x:Name="LsbiPlay" Content="{ll:Str '玩耍'}" />
|
|
<ListBoxItem x:Name="LsbiStar" Content="{ll:Str '收藏'}" />
|
|
<ListBoxItem x:Name="LsbiAutoWork" Content="{ll:Str '日程表'}" />
|
|
</ListBox>
|
|
</StackPanel>
|
|
<Grid Grid.Column="1" Margin="15">
|
|
<Grid x:Name="gdWork">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="15" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="{ll:Str 工作内容}"
|
|
FontSize="{Binding FontSize, Source={x:Static pu:GlobalSettings.Setting}}" />
|
|
<ComboBox x:Name="detailTypes" Grid.Row="1" Margin="0,3,0,0" Style="{DynamicResource StandardComboBoxStyle}"
|
|
SelectionChanged="detailTypes_SelectionChanged" />
|
|
<Image x:Name="WorkViewImage" RenderOptions.BitmapScalingMode="HighQuality" Grid.Row="2"
|
|
Margin="-20,0" Stretch="Uniform" Source="/Res/img/r_singlemoney_1.png" />
|
|
<Border Grid.Row="2" VerticalAlignment="Bottom" Background="{DynamicResource SecondaryTrans}"
|
|
HorizontalAlignment="Left" Padding="5,0,5,0" CornerRadius="10">
|
|
<TextBlock Foreground="{DynamicResource DARKPrimaryDarker}" FontSize="20">
|
|
Lv <Run Text="{Binding Text,ElementName=tbLvLimit}" FontSize="36" FontWeight="Bold" />
|
|
</TextBlock>
|
|
</Border>
|
|
|
|
</Grid>
|
|
<Border Grid.Column="2" Background="White" CornerRadius="4" />
|
|
<Grid Grid.Column="2" Margin="15">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<ToggleButton x:Name="tbtn_star" VerticalAlignment="Top" HorizontalAlignment="Right"
|
|
Content="" FontFamily="pack://application:,,,/Res/#remixicon"
|
|
Style="{DynamicResource TextToggleButtonStyle}" FontSize="24" Margin="6"
|
|
pu:ToggleButtonHelper.CheckedContent="" Click="tbtn_star_Click" Grid.Column="4"
|
|
Grid.RowSpan="3" Grid.ColumnSpan="4" />
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="15" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="15" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock x:Name="tbGain" VerticalAlignment="Bottom"
|
|
Foreground="{DynamicResource PrimaryDarker}"
|
|
FontSize="{Binding FontSize, Converter={x:Static pu:Converters.DoublePlusConverter}, ConverterParameter=6, Source={x:Static pu:GlobalSettings.Setting}}">$金钱</TextBlock>
|
|
<TextBlock x:Name="tbSpeed" Grid.Column="2" VerticalAlignment="Bottom"
|
|
Foreground="{DynamicResource PrimaryDarker}" Text="+ 4/t" ToolTip="{ll:Str 获得效率}" />
|
|
<TextBlock Grid.Row="2" Text="{ll:Str 饱腹消耗}" />
|
|
<TextBlock x:Name="tbFood" Grid.Row="2" Grid.Column="2"
|
|
Foreground="{DynamicResource DangerBrush}" Text="- 1/t" />
|
|
<TextBlock Grid.Row="3" Text="{ll:Str 口渴消耗}" />
|
|
<TextBlock x:Name="tbDrink" Grid.Row="3" Grid.Column="2"
|
|
Foreground="{DynamicResource DangerBrush}" Text="- 4/t" />
|
|
<TextBlock Grid.Row="4" Text="{ll:Str 心情消耗}" />
|
|
<TextBlock x:Name="tbSpirit" Grid.Row="4" Grid.Column="2"
|
|
Foreground="{DynamicResource DangerBrush}" Text="- 4/t" />
|
|
<TextBlock Grid.Row="5" Text="{ll:Str 等级限制}" />
|
|
<TextBlock x:Name="tbLvLimit" Grid.Row="5" Grid.Column="2"
|
|
Foreground="{DynamicResource PrimaryDarker}" Text="- 4/t" />
|
|
<TextBlock Grid.Row="6" Text="{ll:Str 花费时间}" />
|
|
<TextBlock x:Name="tbTime" Grid.Row="6" Grid.Column="2"
|
|
Foreground="{DynamicResource PrimaryDarker}" Text="10 t" />
|
|
<TextBlock Grid.Row="7" Text="{ll:Str 奖励倍率}" />
|
|
<TextBlock x:Name="tbBonus" Grid.Row="7" Grid.Column="2"
|
|
Foreground="{DynamicResource PrimaryDarker}" Text="x2" />
|
|
<TextBlock Grid.Row="8" Text="{ll:Str 倍率调整}" />
|
|
<TextBlock x:Name="tbRatio" Grid.Row="8" Grid.Column="2"
|
|
Foreground="{DynamicResource PrimaryDarker}" Text="x2" />
|
|
<Slider x:Name="wDouble" pu:SliderHelper.ThumbWidth="10"
|
|
pu:SliderHelper.ThumbCornerRadius="2" pu:SliderHelper.ThumbHeight="16"
|
|
pu:SliderHelper.ThumbBorderThickness="2" Grid.Row="9" Grid.Column="0"
|
|
Grid.ColumnSpan="4" SmallChange="1" Value="1" Minimum="1" IsEnabled="False"
|
|
TickFrequency="1" IsSnapToTickEnabled="True" ValueChanged="wDouble_ValueChanged"
|
|
LargeChange="1" Style="{DynamicResource StandardSliderStyle}" TickPlacement="Both" />
|
|
</Grid>
|
|
<Button x:Name="btnAddAuto" Grid.Row="1" Content="{ll:Str 添加至日程表}" Padding="0"
|
|
Style="{DynamicResource ThemedButtonStyle}" Background="{DynamicResource PrimaryDarker}"
|
|
Click="btnStart_Click" Margin="5" Height="25" IsEnabled="False" />
|
|
<Button x:Name="btnStart" Grid.Row="2" Height="30" Content="{ll:Str 开始工作}"
|
|
Style="{DynamicResource ThemedButtonStyle}" Background="{DynamicResource PrimaryDarker}"
|
|
Click="btnStart_Click" FontSize="16" FontWeight="Bold" />
|
|
</Grid>
|
|
</Grid>
|
|
<Grid x:Name="gdSchedule">
|
|
<TabControl pu:TabControlHelper.ItemsCornerRadius="4" pu:TabControlHelper.ItemsHeight="NaN"
|
|
pu:TabControlHelper.ItemsHoverBackground="{DynamicResource PrimaryLight}"
|
|
pu:TabControlHelper.ItemsPadding="10,7"
|
|
pu:TabControlHelper.ItemsSelectedBackground="{DynamicResource PrimaryDark}"
|
|
pu:TabControlHelper.ItemsSelectedForeground="{DynamicResource DARKPrimaryText}" Background="Transparent"
|
|
BorderThickness="0" Foreground="{DynamicResource PrimaryText}" SelectedIndex="0">
|
|
<TabItem Header="机构签署">
|
|
<Grid Margin="7">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="15" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<UniformGrid Columns="2">
|
|
<UniformGrid.Resources>
|
|
<Style TargetType="ToggleButton" BasedOn="{StaticResource {x:Static pu:StyleKeys.ToggleButtonStyle}}">
|
|
<Setter Property="Padding" Value="0,3" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="{DynamicResource PrimaryText}" />
|
|
<Setter Property="BorderBrush" Value="{DynamicResource DARKPrimary}" />
|
|
<Setter Property="BorderThickness" Value="1.5" />
|
|
<Setter Property="pu:ToggleButtonHelper.CheckedBackground" Value="{DynamicResource DARKPrimary}" />
|
|
<Setter Property="pu:ToggleButtonHelper.CheckedForeground" Value="{DynamicResource DARKPrimaryText}" />
|
|
</Style>
|
|
</UniformGrid.Resources>
|
|
<ToggleButton x:Name="tbtnAgencyJob" pu:ToggleButtonHelper.CornerRadius="4,0,0,4" Content="工作中介" IsChecked="True"
|
|
Checked="tbtn_Agency_CheckChanged" PreviewMouseLeftButtonDown="tbtnAgency_PreviewMouseLeftButtonDown"/>
|
|
<ToggleButton x:Name="tbtnAgencyTraning" pu:ToggleButtonHelper.CornerRadius="0,4,4,0" Content="培训机构"
|
|
Checked="tbtn_Agency_CheckChanged" PreviewMouseLeftButtonDown="tbtnAgency_PreviewMouseLeftButtonDown"/>
|
|
</UniformGrid>
|
|
<Image x:Name="imgAgency" RenderOptions.BitmapScalingMode="HighQuality" Grid.Row="2"
|
|
Margin="-20,0" Stretch="Uniform" Source="/Res/img/r_agency_job.png" />
|
|
</Grid>
|
|
<Border Grid.Column="2" Background="White" CornerRadius="4" />
|
|
<Grid Grid.Column="2" Margin="15">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<ComboBox Margin="0,3,0,0" Style="{DynamicResource StandardComboBoxStyle}"
|
|
pu:ComboBoxHelper.Watermark="--请选择套餐--" SelectionChanged="detailTypes_SelectionChanged" />
|
|
<TextBlock Grid.Row="1" Margin="0,7,0,0" VerticalAlignment="Bottom" Text="{ll:Str 选择等级}"/>
|
|
<TextBlock Grid.Row="1" Margin="0,7,0,0" FontSize="16" HorizontalAlignment="Right" Foreground="{DynamicResource DARKPrimary}" >
|
|
<Run Text="Lv."/>
|
|
<Run Text="50"/>
|
|
</TextBlock>
|
|
<Slider Grid.Row="2" pu:SliderHelper.ThumbWidth="10"
|
|
pu:SliderHelper.ThumbCornerRadius="2" pu:SliderHelper.ThumbHeight="16"
|
|
pu:SliderHelper.ThumbBorderThickness="2" SmallChange="1" Value="1" Minimum="1"
|
|
TickFrequency="1" IsSnapToTickEnabled="True" ValueChanged="wDouble_ValueChanged"
|
|
LargeChange="1" Style="{DynamicResource StandardSliderStyle}" TickPlacement="Both"></Slider>
|
|
<TextBlock Grid.Row="3" Margin="0,7,0,0">
|
|
<Run>抽成</Run>
|
|
<Run Foreground="{DynamicResource DARKPrimary}" Text="40%" />
|
|
<Run>学费</Run>
|
|
<Run Foreground="{DynamicResource DARKPrimary}" Text="20%" />
|
|
</TextBlock>
|
|
<Grid Grid.Row="4" Margin="0,3,0,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="15" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock>办理费用</TextBlock>
|
|
<TextBlock Grid.Column="2" HorizontalAlignment="Right" Foreground="{DynamicResource DARKPrimary}" Text="50000" />
|
|
<TextBlock Grid.Row="1">等级需求</TextBlock>
|
|
<TextBlock Grid.Row="1" Grid.Column="2" HorizontalAlignment="Right" Foreground="{DynamicResource DARKPrimary}" Text="100" />
|
|
<TextBlock Grid.Row="2">合同持续时间</TextBlock>
|
|
<TextBlock Grid.Row="2" Grid.Column="2" HorizontalAlignment="Right" Foreground="{DynamicResource DARKPrimary}" Text="1周" />
|
|
</Grid>
|
|
<Button x:Name="btnSignAgency" Grid.Row="6" Height="30" Content="{ll:Str 签署}"
|
|
Style="{DynamicResource ThemedButtonStyle}" Background="{DynamicResource PrimaryDarker}"
|
|
Click="btnSignAgency_Click" FontSize="16" FontWeight="Bold" />
|
|
</Grid>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem Header="日程表">
|
|
<Grid Margin="3">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="140"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Margin="0,0,15,0">
|
|
<Border Background="White"
|
|
CornerRadius="4" />
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Margin="7,7,0,0" Text="日程安排" />
|
|
<ScrollViewer Grid.Row="1">
|
|
<StackPanel Margin="20,7,7,7">
|
|
<ItemsControl x:Name="icSchedule"
|
|
ItemTemplateSelector="{StaticResource ScheduleItemTemplateSelector}">
|
|
<ItemsControl.Resources>
|
|
<DataTemplate x:Key="WorkScheduleTemplate">
|
|
<StackPanel>
|
|
<Button Margin="-20,-5,0,-5" HorizontalAlignment="Left" Visibility="{Binding IsPreviousIsRest, Converter={x:Static pu:Converters.TrueToCollapseConverter}}"
|
|
Style="{DynamicResource IconButtonStyle}" ToolTip="{ll:Str 添加休息}" Click="btn_addRest_Click"></Button>
|
|
<Border Height="90" CornerRadius="5" Background="{DynamicResource DARKPrimaryTrans4}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="120" />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Margin="-15,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
<Button Margin="0,0,0,0" Padding="0"
|
|
Style="{DynamicResource IconButtonStyle}" ToolTip="{ll:Str 上移}" Click="btn_scheduleUp_Click"></Button>
|
|
<Button Margin="0,0,0,0" Padding="0"
|
|
Style="{DynamicResource IconButtonStyle}" ToolTip="{ll:Str 下移}" Click="btn_scheduleDown_Click"></Button>
|
|
</StackPanel>
|
|
<Image Stretch="Uniform" Source="/Res/img/r_autobuy_3.png" />
|
|
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
|
<TextBlock>工作内容</TextBlock>
|
|
<TextBlock FontSize="16" Foreground="{DynamicResource DARKPrimary}" Text="{Binding WorkName}"/>
|
|
<TextBlock>持续时间</TextBlock>
|
|
<TextBlock FontSize="16" Foreground="{DynamicResource DARKPrimary}">
|
|
<Run Text="{Binding WorkTime}"/>
|
|
<Run>分钟</Run>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
<Button Grid.Column="2" HorizontalAlignment="Right"
|
|
Background="Transparent" Foreground="{DynamicResource DangerBrush}" FontFamily="{StaticResource RemixIcon}" Click="btn_removeSchedule_Click"></Button>
|
|
</Grid>
|
|
</Border>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
<DataTemplate x:Key="RestScheduleTemplate">
|
|
<Border Margin="0,7,0,7" Height="30" CornerRadius="5" Padding="0,3" Background="#F1F2F3">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Orientation="Horizontal"
|
|
Margin="7,0">
|
|
<TextBlock VerticalAlignment="Center">休息</TextBlock>
|
|
<pu:NumberInput Minimum="0" Interval="1" IsSnapToIntervalEnabled="True"
|
|
Background="Transparent" BorderThickness="0" Foreground="{DynamicResource DARKPrimary}"
|
|
FontSize="16" Padding="0" Value="{Binding RestTime, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" ValueChanged="NumberInput_ValueChanged">
|
|
<pu:NumberInput.UpDownButtonStyle>
|
|
<Style TargetType="RepeatButton" BasedOn="{StaticResource {x:Static pu:NumberInput.UpDownButtonStyleKey}}">
|
|
<Setter Property="FontSize" Value="10" />
|
|
</Style>
|
|
</pu:NumberInput.UpDownButtonStyle>
|
|
</pu:NumberInput>
|
|
<TextBlock VerticalAlignment="Center" Foreground="{DynamicResource DARKPrimary}"
|
|
FontSize="16">分钟</TextBlock>
|
|
</StackPanel>
|
|
<Button Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Center"
|
|
Background="Transparent" Foreground="{DynamicResource DangerBrush}"
|
|
FontFamily="{StaticResource RemixIcon}" Content="" Click="btn_removeSchedule_Click"/>
|
|
</Grid>
|
|
</Border>
|
|
</DataTemplate>
|
|
</ItemsControl.Resources>
|
|
</ItemsControl>
|
|
<Button Margin="-20,-5,0,-5" HorizontalAlignment="Left"
|
|
Style="{DynamicResource IconButtonStyle}" Content="" ToolTip="{ll:Str 添加休息}" Click="btn_addRest_Click"/>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Grid>
|
|
<Grid Grid.Column="1"
|
|
Margin="0,7,7,7">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="合计"/>
|
|
<Grid Grid.Row="1" Margin="0,7,0,0">
|
|
<pu:RingProgressBar x:Name="rpgbSchedule" Height="{Binding ActualWidth, RelativeSource={RelativeSource Self}}"
|
|
IsPercentVisible="False" FontSize="20"
|
|
Foreground="{DynamicResource DARKPrimary}" BorderBrush="{DynamicResource DARKPrimaryTrans4}" BorderThickness="2"
|
|
Minimum="0" Maximum="100" Value="0" />
|
|
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<StackPanel>
|
|
<TextBlock Opacity="0.5">工作时间</TextBlock>
|
|
<TextBlock Foreground="{DynamicResource DARKPrimary}" HorizontalAlignment="Right">
|
|
<Run x:Name="runScheduleWork" FontSize="22">0</Run>
|
|
<Run>分钟</Run>
|
|
</TextBlock>
|
|
<TextBlock Opacity="0.5">休息时间</TextBlock>
|
|
<TextBlock Foreground="{DynamicResource DARKPrimary}" HorizontalAlignment="Right">
|
|
<Run x:Name="runScheduleRest" FontSize="22">0</Run>
|
|
<Run>分钟</Run>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
<ToggleButton x:Name="btnStartSchedule" Grid.Row="3"
|
|
Style="{DynamicResource ThemedToggleButtonStyle}" Height="30" Content="{ll:Str 开始日程}"
|
|
Background="{DynamicResource PrimaryDarker}" FontSize="16" FontWeight="Bold"
|
|
Click="btnStartSchedule_Click" />
|
|
|
|
</Grid>
|
|
</Grid>
|
|
</TabItem>
|
|
</TabControl>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</pu:WindowX>
|