跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

提交记录
修改Core/Models/Config/Link/LinkModel.cs+2 −2看文件
@@ -11,12 +11,12 @@ namespace Core.Models.Config.Link
1111 /// <summary>
1212 /// 关联名称
1313 /// </summary>
14删除: [Config(Name = "关联名称", Description = "设置一个名称用于识别该关联的目的", IsName = true, IsCanRepeat = false)]
14新增: [Config(Name = "名称", Description = "设置一个名称用于识别该关联", IsName = true, IsCanRepeat = false)]
1515 public string Name { get; set; } = "新的关联";
1616 /// <summary>
1717 /// 关联进程列表
1818 /// </summary>
19删除: [Config(Name = "关联进程", Description = "将需要关联的进程名称(不带.exe)添加到此", IsCanRepeat = false)]
19新增: [Config(Name = "关联进程", Description = "将需要关联的进程名称(不带.exe)添加到此,至少两个。", IsCanRepeat = false)]
2020 public List<string> ProcessList { get; set; } = new List<string>();
2121 }
2222}
修改UI/App.xaml+13 −9看文件
@@ -3,6 +3,7 @@
33 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44 xmlns:local="clr-namespace:UI"
55 Startup="OnStartup"
6新增: xmlns:base="clr-namespace:UI.Controls.Base"
67 >
78 <Application.Resources>
89 <!--上下文菜单样式-->
@@ -76,7 +77,7 @@
7677 <Setter Property="Height"
7778 Value="1" />
7879 <Setter Property="Margin"
79删除: Value="35,5,5,5" />
80新增: Value="45,5,15,5" />
8081 <Setter Property="Template">
8182 <Setter.Value>
8283 <ControlTemplate TargetType="{x:Type Separator}">
@@ -201,17 +202,18 @@
201202 Padding="0,6">
202203 <Grid>
203204 <Grid.ColumnDefinitions>
204删除: <ColumnDefinition Width="20"
205新增: <ColumnDefinition Width="30"
205206 SharedSizeGroup="Icon" />
206207 <ColumnDefinition Width="20" />
207208 <ColumnDefinition Width="Auto"
208209 SharedSizeGroup="Shortcut" />
209210 <ColumnDefinition Width="13" />
210211 </Grid.ColumnDefinitions>
212新增:
211213 <ContentPresenter x:Name="Icon"
212214
213215 VerticalAlignment="Center"
214删除:
216新增: TextElement.Foreground="Gray"
215217 HorizontalAlignment="Center"
216218 ContentSource="Icon" />
217219 <Rectangle x:Name="CheckMark"
@@ -228,7 +230,9 @@
228230 <ContentPresenter x:Name="HeaderHost"
229231 Grid.Column="2"
230232 ContentSource="Header"
231删除: RecognizesAccessKey="True" />
233新增: Margin="0,0,10,0"
234新增: VerticalAlignment="Center"
235新增:HorizontalAlignment="Left" RecognizesAccessKey="True" />
232236 <TextBlock x:Name="InputGestureText"
233237 Grid.Column="3"
234238 FontWeight="Normal"
@@ -689,14 +693,14 @@
689693 </BeginStoryboard>
690694 </EventTrigger>
691695 </ControlTemplate.Triggers>
692删除:
696新增:
693697 </ControlTemplate>
694698 </Setter.Value>
695699 </Setter>
696700 </Style>
697删除:
698删除:
699删除:
700删除:
701新增:
702新增:
703新增:
704新增:
701705 </Application.Resources>
702706</Application>
修改UI/Controls/Base/IconConverter.cs+2 −0看文件
@@ -127,6 +127,8 @@ namespace UI.Controls.Base
127127 {IconTypes.SkypeCircleClock,"\xEF7E"},
128128 {IconTypes.FlameSolid,"\xF1F3"},
129129 {IconTypes.PieSingleSolid,"\xF530"},
130新增: {IconTypes.Refresh,"\xE72C"},
131新增: {IconTypes.Export,"\xEDE1"},
130132
131133
132134 };
修改UI/Controls/Base/IconTypes.cs+3 −1看文件
@@ -150,6 +150,8 @@ namespace UI.Controls.Base
150150 MSNVideosSolid,
151151 SkypeCircleClock,
152152 FlameSolid,
153删除: PieSingleSolid
153新增: PieSingleSolid,
154新增: Refresh,
155新增: Export
154156 }
155157}
修改UI/Controls/Base/View.cs+67 −41看文件
@@ -56,73 +56,99 @@ namespace UI.Controls.Base
5656
5757 private void Handle()
5858 {
59删除: if (string.IsNullOrEmpty(Condition) && Value == null)
59新增: try
6060 {
61删除: return;
62删除: }
63删除:
64删除: bool isShow = false;
65删除: if (string.IsNullOrEmpty(Condition))
66删除: {
67删除: if ((bool)Value)
61新增: if (string.IsNullOrEmpty(Condition) && Value == null)
6862 {
69删除: isShow = true;
63新增: return;
7064 }
71删除: }
72删除: else
73删除: {
74删除:
7565
76删除: if (Condition.IndexOf("=") != -1)
66新增: bool isShow = false;
67新增: if (string.IsNullOrEmpty(Condition))
7768 {
78删除: string val = Condition.Substring(Condition.IndexOf("=") + 1);
79删除: isShow = val == Value.ToString();
69新增: if ((bool)Value)
70新增: {
71新增: isShow = true;
72新增: }
8073 }
81删除: else if (Condition.IndexOf("not null") != -1)
74新增: else
8275 {
8376
84删除: isShow = Value != null;
85删除: }
86删除: else if (Condition.IndexOf("null") != -1)
87删除: {
8877
89删除: isShow = Value == null;
90删除: }
91删除: else if (Condition.IndexOf("empty") != -1)
92删除: {
93删除: if (Value == null)
78新增: if (Condition.IndexOf("=") != -1)
9479 {
95删除: isShow = true;
80新增: string val = Condition.Substring(Condition.IndexOf("=") + 1);
81新增: isShow = val == Value.ToString();
9682 }
97删除: else
83新增: else if (Condition.IndexOf("not null") != -1)
84新增: {
85新增:
86新增: isShow = Value != null;
87新增: }
88新增: else if (Condition.IndexOf("null") != -1)
89新增: {
90新增:
91新增: isShow = Value == null;
92新增: }
93新增: else if (Condition.IndexOf("not empty") != -1)
9894 {
99删除: var data = Value as IEnumerable<object>;
100删除: if (data != null)
95新增: if (Value == null)
10196 {
102删除: isShow = data.Count() == 0;
97新增: isShow = false;
10398 }
10499 else
105100 {
106删除: isShow = string.IsNullOrEmpty(Value.ToString());
101新增: var data = Value as IEnumerable<object>;
102新增: if (data != null)
103新增: {
104新增: isShow = data.Count() > 0;
105新增: }
106新增: else
107新增: {
108新增: isShow = !string.IsNullOrEmpty(Value.ToString());
109新增: }
110新增: }
111新增: }
112新增: else if (Condition.IndexOf("empty") != -1)
113新增: {
114新增: if (Value == null)
115新增: {
116新增: isShow = true;
107117 }
118新增: else
119新增: {
120新增: var data = Value as IEnumerable<object>;
121新增: if (data != null)
122新增: {
123新增: isShow = data.Count() == 0;
124新增: }
125新增: else
126新增: {
127新增: isShow = string.IsNullOrEmpty(Value.ToString());
128新增: }
129新增: }
130新增: }
131新增: else
132新增: {
133新增: isShow = Condition == (Value != null ? Value.ToString() : "");
108134 }
109135 }
136新增:
137新增:
138新增:
139新增: if (isShow)
140新增: {
141新增: Visibility = Visibility.Visible;
142新增: }
110143 else
111144 {
112删除: isShow = Condition == (Value != null ? Value.ToString() : "");
145新增: Visibility = Visibility.Collapsed;
113146 }
114147 }
115删除:
116删除:
117删除: if (isShow)
118删除: {
119删除: Visibility = Visibility.Visible;
120删除: }
121删除: else
148新增: catch(Exception ex)
122149 {
123150 Visibility = Visibility.Collapsed;
124151 }
125删除:
126152 }
127153 }
128154}
修改UI/Controls/Select/Select.cs+11 −1看文件
@@ -27,7 +27,17 @@ namespace UI.Controls.Select
2727 public static readonly DependencyProperty IsOpenProperty =
2828 DependencyProperty.Register("IsOpen",
2929 typeof(bool),
30删除: typeof(Select));
30新增: typeof(Select), new PropertyMetadata(new PropertyChangedCallback(OnIsOpenChanged)));
31新增:
32新增: private static void OnIsOpenChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
33新增: {
34新增: var control = d as Select;
35新增: if (control != null)
36新增: {
37新增: VisualStateManager.GoToState(control, control.IsOpen ? "ShowPopup" : "Normal", true);
38新增: }
39新增: }
40新增:
3141 public List<SelectItemModel> Options
3242 {
3343 get { return (List<SelectItemModel>)GetValue(OptionsProperty); }
修改UI/Themes/Select/Select.xaml+26 −1看文件
@@ -27,6 +27,11 @@
2727 <!--<TextBlock x:Name="PlaceholderText" Text="请选择" Visibility="Collapsed"/>-->
2828 <base:Img x:Name="Img" URL="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Img}" Width="20" Height="20" VerticalAlignment="Center"/>
2929 <TextBlock TextOptions.TextFormattingMode="Display" Text="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=SelectedItem.Name}" VerticalAlignment="Center" Margin="5,0,0,0"/>
30新增: <base:Icon x:Name="PopupIcon" Width="15" Height="15" Margin="5,0,0,0" FontSize="10" IconType="ChevronDown" VerticalAlignment="Center" RenderTransformOrigin=".5,.5">
31新增: <base:Icon.RenderTransform>
32新增: <RotateTransform Angle="0" />
33新增: </base:Icon.RenderTransform>
34新增: </base:Icon>
3035 </StackPanel>
3136 </Border>
3237
@@ -34,7 +39,7 @@
3439 <Popup
3540 Placement="Bottom"
3641 PlacementTarget="{Binding ElementName=Main}"
37删除: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" StaysOpen="False">
42新增: IsOpen="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:Select}}, Path=IsOpen,Mode=TwoWay}" AllowsTransparency="True" StaysOpen="False" PopupAnimation="Slide">
3843 <Border
3944 CornerRadius="10"
4045 BorderBrush="#CCC"
@@ -52,6 +57,26 @@
5257 </Border>
5358 </Popup>
5459 </Grid>
60新增: <VisualStateManager.VisualStateGroups>
61新增: <VisualStateGroup x:Name="CommonStates">
62新增: <VisualStateGroup.Transitions>
63新增: <VisualTransition GeneratedDuration="0:0:0.18" />
64新增: <VisualTransition GeneratedDuration="0"
65新增: To="Pressed" />
66新增: </VisualStateGroup.Transitions>
67新增: <VisualState x:Name="Normal" />
68新增: <VisualState x:Name="ShowPopup">
69新增: <Storyboard>
70新增: <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(base:Icon.RenderTransform).(RotateTransform.Angle)"
71新增: Storyboard.TargetName="PopupIcon">
72新增: <EasingDoubleKeyFrame KeyTime="0:0:0.18"
73新增: Value="-180" />
74新增:
75新增: </DoubleAnimationUsingKeyFrames>
76新增: </Storyboard>
77新增: </VisualState>
78新增: </VisualStateGroup>
79新增: </VisualStateManager.VisualStateGroups>
5580 </Border>
5681 <ControlTemplate.Triggers>
5782 <Trigger Property="IsMouseOver" Value="True">
修改UI/Views/DetailPage.xaml+99 −89看文件
@@ -127,110 +127,120 @@
127127
128128 </StackPanel>
129129 </Border>-->
130删除: <TextBlock Text="时段" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/>
131删除: <Tabbar:Tabbar Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}" Width="180" HorizontalAlignment="Left"/>
132删除: <Border Margin="0,15,0,0" Width="680" HorizontalAlignment="Left" Background="{DynamicResource StandardBackgroundBrush}" Padding="20,10" CornerRadius="10">
133删除: <StackPanel>
134130
131新增: <WrapPanel Margin="-10">
132新增: <StackPanel Margin="10,0,0,0">
133新增: <TextBlock Text="时段" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/>
134新增: <Tabbar:Tabbar Data="{Binding TabbarData}" SelectedIndex="{Binding TabbarSelectedIndex,Mode=TwoWay}" Width="180" HorizontalAlignment="Left"/>
135新增: <Border Margin="0,15,0,0" Width="680" HorizontalAlignment="Left" Background="{DynamicResource StandardBackgroundBrush}" Padding="20,10" CornerRadius="10">
136新增: <StackPanel>
137新增:
138新增:
139新增: <Grid Margin="0,15,0,0">
140新增: <!--按天-->
141新增: <base:View Condition="0" Value="{Binding TabbarSelectedIndex}">
142新增: <Select:DateSelect Date="{Binding ChartDate,Mode=TwoWay}"/>
143新增: </base:View>
144新增:
145新增: <!--按周-->
146新增: <base:View Condition="1" Value="{Binding TabbarSelectedIndex}">
147新增: <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
148新增: <Select:Select IsShowIcon="False" SelectedItem="{Binding SelectedWeek,Mode=TwoWay}" Options="{Binding WeekOptions}"/>
149新增: <TextBlock Foreground="#626262" Margin="20,0,0,0" FontSize="14" Text="{Binding WeekDateStr}" VerticalAlignment="Center"/>
150新增: </StackPanel>
151新增: </base:View>
152新增: <!--按月-->
153新增: <base:View Condition="2" Value="{Binding TabbarSelectedIndex}">
154新增: <Select:DateSelect Date="{Binding MonthDate,Mode=TwoWay}" SelectType="Month"/>
135155
136删除: <Grid Margin="0,15,0,0">
137删除: <!--按天-->
138删除: <base:View Condition="0" Value="{Binding TabbarSelectedIndex}">
139删除: <Select:DateSelect Date="{Binding ChartDate,Mode=TwoWay}"/>
140删除: </base:View>
141删除:
142删除: <!--按周-->
143删除: <base:View Condition="1" Value="{Binding TabbarSelectedIndex}">
144删除: <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
145删除: <Select:Select IsShowIcon="False" SelectedItem="{Binding SelectedWeek,Mode=TwoWay}" Options="{Binding WeekOptions}"/>
146删除: <TextBlock Foreground="#626262" Margin="20,0,0,0" FontSize="14" Text="{Binding WeekDateStr}" VerticalAlignment="Center"/>
147删除: </StackPanel>
148删除: </base:View>
149删除: <!--按月-->
150删除: <base:View Condition="2" Value="{Binding TabbarSelectedIndex}">
151删除: <Select:DateSelect Date="{Binding MonthDate,Mode=TwoWay}" SelectType="Month"/>
156新增: </base:View>
157新增: <!--按年-->
158新增: <base:View Condition="3" Value="{Binding TabbarSelectedIndex}">
159新增: <Select:DateSelect Date="{Binding YearDate,Mode=TwoWay}" SelectType="Year"/>
152160
153删除: </base:View>
154删除: <!--按年-->
155删除: <base:View Condition="3" Value="{Binding TabbarSelectedIndex}">
156删除: <Select:DateSelect Date="{Binding YearDate,Mode=TwoWay}" SelectType="Year"/>
161新增: </base:View>
162新增: </Grid>
163新增: <Charts:Charts DataMaximum="{Binding DataMaximum}" Height="305" NameIndexStart="{Binding NameIndexStart}" ChartsType="Column" Data="{Binding ChartData}" Margin="0,20,0,0"/>
157164
158删除: </base:View>
159删除: </Grid>
160删除: <Charts:Charts DataMaximum="{Binding DataMaximum}" Height="300" NameIndexStart="{Binding NameIndexStart}" ChartsType="Column" Data="{Binding ChartData}" Margin="0,20,0,0"/>
165新增: </StackPanel>
161166
167新增: </Border>
162168 </StackPanel>
163169
164删除: </Border>
165删除: <TextBlock Text="每月" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/>
170新增: <StackPanel Margin="10,0,0,0" VerticalAlignment="Bottom" Width="680">
171新增: <TextBlock Text="每月" Foreground="#5c5c5c" FontSize="14" Margin="0,20,0,0"/>
166172
167删除: <Border
173新增: <Border
168174 Background="{DynamicResource StandardBackgroundBrush}"
169175 CornerRadius="12"
170176 Padding="20,20"
171177 Margin="0,10,0,0">
172删除: <StackPanel>
173删除: <Grid>
174删除: <DatePickerBar:DatePickerBar ShowType="Month" HorizontalAlignment="Left" SelectedDate="{Binding Date,Mode=TwoWay}"/>
175删除:
176删除: <btn:Button ToolTip="清空此应用在该月的统计数据" HorizontalAlignment="Right" VerticalAlignment="Top" Background="#f51837" Foreground="White" Width="120" Margin="0" Icon="Delete" Command="{Binding ClearSelectMonthDataCommand}">清空统计</btn:Button>
177删除:
178删除: </Grid>
179删除: <Grid Margin="0,20,0,0">
180删除: <Grid.ColumnDefinitions>
181删除: <ColumnDefinition Width="256"/>
182删除: <ColumnDefinition Width="9*"/>
183删除:
184删除: </Grid.ColumnDefinitions>
185删除: <Charts:Charts Data="{Binding Data}" ChartsType="Month" HorizontalAlignment="Left"/>
186删除: <StackPanel Grid.Column="1" >
187删除: <Border Padding="15" CornerRadius="10" BorderThickness="0">
188删除: <Border.Background>
189删除: <SolidColorBrush Color="#2b20d9" Opacity=".02"/>
190删除: </Border.Background>
191删除: <Border.BorderBrush>
192删除: <SolidColorBrush Color="#2b20d9" Opacity=".5"/>
193删除: </Border.BorderBrush>
194删除: <Grid>
195删除: <Grid>
196删除: <Grid.RowDefinitions>
197删除: <RowDefinition Height="auto"/>
198删除: <RowDefinition Height="auto"/>
199删除: </Grid.RowDefinitions>
200删除: <TextBlock FontSize="14"><Run Text="该月累计使用 " Foreground="Gray" /><Run FontSize="16" Text="{Binding Total}"/>
201删除: </TextBlock>
202删除: <TextBlock Grid.Row="1" Margin="0,5,0,0" FontSize="14"><Run Text="{Binding LongDay}"/>
203删除: </TextBlock>
204删除: </Grid>
205删除: <base:Icon IconType="SkypeCircleClock" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Foreground="#2b20d9" Opacity=".1"/>
206删除: </Grid>
207删除: </Border>
208删除: <Border Margin="0,10,0,0" Padding="15" CornerRadius="10" BorderThickness="0">
209删除: <Border.Background>
210删除: <SolidColorBrush Color="#2b20d9" Opacity=".02"/>
211删除: </Border.Background>
212删除: <Border.BorderBrush>
213删除: <SolidColorBrush Color="#2b20d9" Opacity=".5"/>
214删除: </Border.BorderBrush>
215删除: <Grid>
216删除: <Grid>
217删除: <Grid.RowDefinitions>
218删除: <RowDefinition Height="auto"/>
219删除: <RowDefinition Height="auto"/>
220删除: </Grid.RowDefinitions>
221删除: <TextBlock Foreground="Gray" Text="在当月所有使用应用时长中占比" FontSize="14" />
222删除:
223删除: <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="24"><Run Text="{Binding Ratio}"/>
224删除: </TextBlock>
225删除: </Grid>
226删除: <base:Icon IconType="PieSingleSolid" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Foreground="#2b20d9" Opacity=".1"/>
227删除: </Grid>
228删除: </Border>
178新增: <StackPanel>
179新增: <Grid>
180新增: <DatePickerBar:DatePickerBar ShowType="Month" HorizontalAlignment="Left" SelectedDate="{Binding Date,Mode=TwoWay}"/>
181新增:
182新增: <btn:Button ToolTip="清空此应用在该月的统计数据" HorizontalAlignment="Right" VerticalAlignment="Top" Background="#f51837" Foreground="White" Width="120" Margin="0" Icon="Delete" Command="{Binding ClearSelectMonthDataCommand}">清空统计</btn:Button>
183新增:
184新增: </Grid>
185新增: <Grid Margin="0,20,0,0">
186新增: <Grid.ColumnDefinitions>
187新增: <ColumnDefinition Width="256"/>
188新增: <ColumnDefinition Width="9*"/>
189新增:
190新增: </Grid.ColumnDefinitions>
191新增: <Charts:Charts Data="{Binding Data}" ChartsType="Month" HorizontalAlignment="Left"/>
192新增: <StackPanel Grid.Column="1" >
193新增: <Border Padding="15" CornerRadius="10" BorderThickness="0">
194新增: <Border.Background>
195新增: <SolidColorBrush Color="#2b20d9" Opacity=".02"/>
196新增: </Border.Background>
197新增: <Border.BorderBrush>
198新增: <SolidColorBrush Color="#2b20d9" Opacity=".5"/>
199新增: </Border.BorderBrush>
200新增: <Grid>
201新增: <Grid>
202新增: <Grid.RowDefinitions>
203新增: <RowDefinition Height="auto"/>
204新增: <RowDefinition Height="auto"/>
205新增: </Grid.RowDefinitions>
206新增: <TextBlock FontSize="14"><Run Text="该月累计使用 " Foreground="Gray" /><Run FontSize="16" Text="{Binding Total}"/>
207新增: </TextBlock>
208新增: <TextBlock Grid.Row="1" Margin="0,5,0,0" FontSize="14"><Run Text="{Binding LongDay}"/>
209新增: </TextBlock>
210新增: </Grid>
211新增: <base:Icon IconType="SkypeCircleClock" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Foreground="#2b20d9" Opacity=".1"/>
212新增: </Grid>
213新增: </Border>
214新增: <Border Margin="0,10,0,0" Padding="15" CornerRadius="10" BorderThickness="0">
215新增: <Border.Background>
216新增: <SolidColorBrush Color="#2b20d9" Opacity=".02"/>
217新增: </Border.Background>
218新增: <Border.BorderBrush>
219新增: <SolidColorBrush Color="#2b20d9" Opacity=".5"/>
220新增: </Border.BorderBrush>
221新增: <Grid>
222新增: <Grid>
223新增: <Grid.RowDefinitions>
224新增: <RowDefinition Height="auto"/>
225新增: <RowDefinition Height="auto"/>
226新增: </Grid.RowDefinitions>
227新增: <TextBlock Foreground="Gray" Text="在当月所有使用应用时长中占比" FontSize="14" />
228新增:
229新增: <TextBlock Grid.Row="1" Margin="0,10,0,0" FontSize="24"><Run Text="{Binding Ratio}"/>
230新增: </TextBlock>
231新增: </Grid>
232新增: <base:Icon IconType="PieSingleSolid" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="30" Foreground="#2b20d9" Opacity=".1"/>
233新增: </Grid>
234新增: </Border>
229235
236新增: </StackPanel>
237新增: </Grid>
230238 </StackPanel>
231删除: </Grid>
239新增: </Border>
232240 </StackPanel>
233删除: </Border>
241新增: </WrapPanel>
242新增:
243新增:
234244
235245 </StackPanel>
236246</Page>
修改UI/Views/SettingPage.xaml+3 −3看文件
@@ -54,19 +54,19 @@
5454 <select:DateSelect Date="{Binding DelDataStartMonthDate,Mode=TwoWay}" Margin="10,0" SelectType="Month"/>
5555 <TextBlock Text="到" VerticalAlignment="Center"/>
5656 <select:DateSelect Date="{Binding DelDataEndMonthDate,Mode=TwoWay}" Margin="10,0" SelectType="Month"/>
57删除: <Btn:Button Margin="20,0,0,0" Content="执行" Width="80" Background="#f51837" Foreground="White" Command="{Binding DelDataCommand}"/>
57新增: <Btn:Button Margin="20,0,0,0" Icon="Delete" Content="执行" Width="80" Background="#f51837" Foreground="White" Command="{Binding DelDataCommand}" ToolTip="删除并且不可恢复"/>
5858 </StackPanel>
5959 </Border>
6060 <TextBlock Text="导出数据" FontSize="14" Margin="0,15,0,0"/>
6161 <Border Background="{DynamicResource StandardBackgroundBrush}" Padding="20" CornerRadius="6" Margin="0,10,0,0" BorderBrush="{DynamicResource CardBorder}" BorderThickness="1">
6262 <StackPanel>
63删除: <TextBlock Text="导出为xlsx和csv格式,需要注意:没有设置分类的应用数据不会导出。" Foreground="#989CA1" FontSize="12"/>
63新增: <TextBlock Text="导出为xlsx和csv格式,需要注意:没有设置分类的应用数据不会被导出。" Foreground="#989CA1" FontSize="12"/>
6464 <StackPanel Orientation="Horizontal" Margin="0,10,0,0">
6565 <TextBlock Text="从" VerticalAlignment="Center"/>
6666 <select:DateSelect Date="{Binding ExportDataStartMonthDate,Mode=TwoWay}" Margin="10,0" SelectType="Month"/>
6767 <TextBlock Text="到" VerticalAlignment="Center"/>
6868 <select:DateSelect Date="{Binding ExportDataEndMonthDate,Mode=TwoWay}" Margin="10,0" SelectType="Month"/>
69删除: <Btn:Button Margin="20,0,0,0" Content="导出" Width="80" Command="{Binding ExportDataCommand}"/>
69新增: <Btn:Button Margin="20,0,0,0" Icon="Export" Content="导出" Width="80" Command="{Binding ExportDataCommand}"/>
7070 </StackPanel>
7171 </StackPanel>
7272 </Border>