修改界面交互
							parent
							
								
									8cc06bb9bd
								
							
						
					
					
						commit
						d63cb761a9
					
				
											
												Binary file not shown.
											
										
									
								
											
												Binary file not shown.
											
										
									
								| 
		 After Width: | Height: | Size: 348 KiB  | 
@ -0,0 +1,46 @@
 | 
				
			|||||||
 | 
					<UserControl x:Class="StartServerWPF.Modules.Main.Views.FilesWatcherView"
 | 
				
			||||||
 | 
					             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:StartServerWPF.Modules.Main.Views"
 | 
				
			||||||
 | 
					             mc:Ignorable="d" 
 | 
				
			||||||
 | 
					             xmlns:prism="http://prismlibrary.com/"
 | 
				
			||||||
 | 
					             prism:ViewModelLocator.AutoWireViewModel="True"
 | 
				
			||||||
 | 
					             d:DesignHeight="450" d:DesignWidth="800">
 | 
				
			||||||
 | 
					    <StackPanel>
 | 
				
			||||||
 | 
					        <TextBlock Text="监控文件路径:" Grid.Row="0" Grid.Column="0" />
 | 
				
			||||||
 | 
					        <DockPanel Grid.Row="1">
 | 
				
			||||||
 | 
					            <Button Content="..." Command="{Binding FilePathSaveCommand}" DockPanel.Dock="Right"  HorizontalAlignment="Right" Height="28" Width="30"/>
 | 
				
			||||||
 | 
					            <TextBox Text="{Binding WatcherPath}" IsReadOnly="True" DockPanel.Dock="Right" FontSize="10"/>
 | 
				
			||||||
 | 
					        </DockPanel>
 | 
				
			||||||
 | 
					        <Grid>
 | 
				
			||||||
 | 
					            <ListView x:Name="listView" ItemsSource="{Binding DataList}"  Grid.Column="1">
 | 
				
			||||||
 | 
					                <ListView.View>
 | 
				
			||||||
 | 
					                    <GridView>
 | 
				
			||||||
 | 
					                        <GridViewColumn Header="时间"  DisplayMemberBinding="{Binding  CreateTime, StringFormat=yyyy-MM-dd HH:mm:ss}" />
 | 
				
			||||||
 | 
					                        <GridViewColumn Header="内容" Width="300" >
 | 
				
			||||||
 | 
					                            <!--模板化单元格内容-->
 | 
				
			||||||
 | 
					                            <GridViewColumn.CellTemplate>
 | 
				
			||||||
 | 
					                                <DataTemplate>
 | 
				
			||||||
 | 
					                                    <TextBox Foreground="CornflowerBlue" MinWidth="200" Cursor="Hand" Text="{Binding Data}" IsReadOnly="True" BorderBrush="Transparent" Background="Transparent" TextWrapping="Wrap"></TextBox>
 | 
				
			||||||
 | 
					                                </DataTemplate>
 | 
				
			||||||
 | 
					                            </GridViewColumn.CellTemplate>
 | 
				
			||||||
 | 
					                        </GridViewColumn>
 | 
				
			||||||
 | 
					                        <GridViewColumn Header="文件名" Width="80" DisplayMemberBinding="{Binding Name}" />
 | 
				
			||||||
 | 
					                        <GridViewColumn Header="修改类型" Width="80" DisplayMemberBinding="{Binding ChangeType}" />
 | 
				
			||||||
 | 
					                        <GridViewColumn Header="是否发送" >
 | 
				
			||||||
 | 
					                            <!--模板化单元格内容-->
 | 
				
			||||||
 | 
					                            <GridViewColumn.CellTemplate>
 | 
				
			||||||
 | 
					                                <DataTemplate>
 | 
				
			||||||
 | 
					                                    <ToggleButton IsEnabled="False" IsChecked="{Binding IsSend}"  HorizontalAlignment="Center" Margin="5,4" Style="{StaticResource ToggleButtonSwitch}"/>
 | 
				
			||||||
 | 
					                                </DataTemplate>
 | 
				
			||||||
 | 
					                            </GridViewColumn.CellTemplate>
 | 
				
			||||||
 | 
					                        </GridViewColumn>
 | 
				
			||||||
 | 
					                    </GridView>
 | 
				
			||||||
 | 
					                </ListView.View>
 | 
				
			||||||
 | 
					            </ListView>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        </Grid>
 | 
				
			||||||
 | 
					    </StackPanel>
 | 
				
			||||||
 | 
					</UserControl>
 | 
				
			||||||
@ -0,0 +1,149 @@
 | 
				
			|||||||
 | 
					<UserControl x:Class="StartServerWPF.Modules.Main.Views.Loading"
 | 
				
			||||||
 | 
					             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" 
 | 
				
			||||||
 | 
					             mc:Ignorable="d" 
 | 
				
			||||||
 | 
					             d:DesignHeight="100" d:DesignWidth="100">
 | 
				
			||||||
 | 
					    <UserControl.Resources>
 | 
				
			||||||
 | 
					        <KeySpline x:Key="keySpline">0.1,0.4,0.9,0.6</KeySpline>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <Storyboard x:Key="keyFrameStoryboard1">
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="e1" Storyboard.TargetProperty="Opacity" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:5" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="0"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="rt1" Storyboard.TargetProperty="Angle" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:0.3" Value="0" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:2.5" Value="360" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:5" Value="720" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="720"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="e2" Storyboard.TargetProperty="Opacity" BeginTime="0:0:0.2" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:5" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="0"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="rt2" Storyboard.TargetProperty="Angle" BeginTime="0:0:0.2" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:0.3" Value="0" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:2.5" Value="360" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:5" Value="720" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="720"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="e3" Storyboard.TargetProperty="Opacity" BeginTime="0:0:0.4" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:5" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="0"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="rt3" Storyboard.TargetProperty="Angle" BeginTime="0:0:0.4" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:0.3" Value="0" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:2.5" Value="360" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:5" Value="720" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="720"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="e4" Storyboard.TargetProperty="Opacity" BeginTime="0:0:0.6" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:5" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="0"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="rt4" Storyboard.TargetProperty="Angle" BeginTime="0:0:0.6" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:0.3" Value="0" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:2.5" Value="360" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:5" Value="720" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="720"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="e5" Storyboard.TargetProperty="Opacity" BeginTime="0:0:0.8" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:5" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="0"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="rt5" Storyboard.TargetProperty="Angle" BeginTime="0:0:0.8" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:0.3" Value="0" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:2.5" Value="360" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:5" Value="720" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="720"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="e6" Storyboard.TargetProperty="Opacity" BeginTime="0:0:1" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:0.3" Value="1"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:5" Value="0"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="0"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					            <DoubleAnimationUsingKeyFrames Storyboard.TargetName="rt6" Storyboard.TargetProperty="Angle" BeginTime="0:0:1" RepeatBehavior="Forever">
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:0.3" Value="0" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:2.5" Value="360" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <SplineDoubleKeyFrame KeyTime="0:0:5" Value="720" KeySpline="{StaticResource keySpline}"/>
 | 
				
			||||||
 | 
					                <DiscreteDoubleKeyFrame KeyTime="0:0:6" Value="720"/>
 | 
				
			||||||
 | 
					            </DoubleAnimationUsingKeyFrames>
 | 
				
			||||||
 | 
					        </Storyboard>
 | 
				
			||||||
 | 
					    </UserControl.Resources>
 | 
				
			||||||
 | 
					    <UserControl.Triggers>
 | 
				
			||||||
 | 
					        <EventTrigger RoutedEvent="UserControl.Loaded">
 | 
				
			||||||
 | 
					            <BeginStoryboard Storyboard="{StaticResource keyFrameStoryboard1}"/>
 | 
				
			||||||
 | 
					        </EventTrigger>
 | 
				
			||||||
 | 
					    </UserControl.Triggers>
 | 
				
			||||||
 | 
					    <Grid Height="140">
 | 
				
			||||||
 | 
					        <Grid.RowDefinitions>
 | 
				
			||||||
 | 
					            <RowDefinition Height="auto"/>
 | 
				
			||||||
 | 
					            <RowDefinition Height="auto"/>
 | 
				
			||||||
 | 
					            <RowDefinition Height="auto"/>
 | 
				
			||||||
 | 
					        </Grid.RowDefinitions>
 | 
				
			||||||
 | 
					        <Grid Height="70" Width="70">
 | 
				
			||||||
 | 
					            <Border RenderTransformOrigin="0.5,0.5">
 | 
				
			||||||
 | 
					                <Border.RenderTransform>
 | 
				
			||||||
 | 
					                    <RotateTransform Angle="0" x:Name="rt1"/>
 | 
				
			||||||
 | 
					                </Border.RenderTransform>
 | 
				
			||||||
 | 
					                <Ellipse Fill="Orange" Width="8" Height="8" VerticalAlignment="Bottom" Name="e1"/>
 | 
				
			||||||
 | 
					            </Border>
 | 
				
			||||||
 | 
					            <Border RenderTransformOrigin="0.5,0.5">
 | 
				
			||||||
 | 
					                <Border.RenderTransform>
 | 
				
			||||||
 | 
					                    <RotateTransform Angle="0" x:Name="rt2"/>
 | 
				
			||||||
 | 
					                </Border.RenderTransform>
 | 
				
			||||||
 | 
					                <Ellipse Fill="Orange" Width="8" Height="8" VerticalAlignment="Bottom" Name="e2"/>
 | 
				
			||||||
 | 
					            </Border>
 | 
				
			||||||
 | 
					            <Border RenderTransformOrigin="0.5,0.5">
 | 
				
			||||||
 | 
					                <Border.RenderTransform>
 | 
				
			||||||
 | 
					                    <RotateTransform Angle="0" x:Name="rt3"/>
 | 
				
			||||||
 | 
					                </Border.RenderTransform>
 | 
				
			||||||
 | 
					                <Ellipse Fill="Orange" Width="8" Height="8" VerticalAlignment="Bottom" Name="e3"/>
 | 
				
			||||||
 | 
					            </Border>
 | 
				
			||||||
 | 
					            <Border RenderTransformOrigin="0.5,0.5">
 | 
				
			||||||
 | 
					                <Border.RenderTransform>
 | 
				
			||||||
 | 
					                    <RotateTransform Angle="0" x:Name="rt4"/>
 | 
				
			||||||
 | 
					                </Border.RenderTransform>
 | 
				
			||||||
 | 
					                <Ellipse Fill="Orange" Width="8" Height="8" VerticalAlignment="Bottom" Name="e4"/>
 | 
				
			||||||
 | 
					            </Border>
 | 
				
			||||||
 | 
					            <Border RenderTransformOrigin="0.5,0.5">
 | 
				
			||||||
 | 
					                <Border.RenderTransform>
 | 
				
			||||||
 | 
					                    <RotateTransform Angle="0" x:Name="rt5"/>
 | 
				
			||||||
 | 
					                </Border.RenderTransform>
 | 
				
			||||||
 | 
					                <Ellipse Fill="Orange" Width="8" Height="8" VerticalAlignment="Bottom" Name="e5"/>
 | 
				
			||||||
 | 
					            </Border>
 | 
				
			||||||
 | 
					            <Border RenderTransformOrigin="0.5,0.5">
 | 
				
			||||||
 | 
					                <Border.RenderTransform>
 | 
				
			||||||
 | 
					                    <RotateTransform Angle="0" x:Name="rt6"/>
 | 
				
			||||||
 | 
					                </Border.RenderTransform>
 | 
				
			||||||
 | 
					                <Ellipse Fill="Orange" Width="8" Height="8" VerticalAlignment="Bottom" Name="e6"/>
 | 
				
			||||||
 | 
					            </Border>
 | 
				
			||||||
 | 
					        </Grid>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <TextBlock Text="{Binding Message,RelativeSource={RelativeSource AncestorType=UserControl,Mode=FindAncestor}}"
 | 
				
			||||||
 | 
					                   Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="#333"
 | 
				
			||||||
 | 
					                   Margin="0,10"/>
 | 
				
			||||||
 | 
					        <TextBlock Grid.Row="2" Margin="0,10" Foreground="Orange" VerticalAlignment="Center" HorizontalAlignment="Center"
 | 
				
			||||||
 | 
					                   Visibility="Collapsed">
 | 
				
			||||||
 | 
					            <Hyperlink Command="{Binding CancelLoadingCommand}">取消</Hyperlink>
 | 
				
			||||||
 | 
					        </TextBlock>
 | 
				
			||||||
 | 
					    </Grid>
 | 
				
			||||||
 | 
					</UserControl>
 | 
				
			||||||
@ -0,0 +1,90 @@
 | 
				
			|||||||
 | 
					<UserControl x:Class="StartServerWPF.Modules.Main.Views.LogManagementView"
 | 
				
			||||||
 | 
					             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:prism="http://prismlibrary.com/"
 | 
				
			||||||
 | 
					             prism:ViewModelLocator.AutoWireViewModel="True"
 | 
				
			||||||
 | 
					             xmlns:hc="https://handyorg.github.io/handycontrol"
 | 
				
			||||||
 | 
					             mc:Ignorable="d"
 | 
				
			||||||
 | 
					             d:DesignHeight="450" d:DesignWidth="800">
 | 
				
			||||||
 | 
					    <UserControl.Resources>
 | 
				
			||||||
 | 
					        <ResourceDictionary>
 | 
				
			||||||
 | 
					            <ResourceDictionary.MergedDictionaries>
 | 
				
			||||||
 | 
					                <ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
 | 
				
			||||||
 | 
					                <ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                <!--<ResourceDictionary Source="/Detection.platform.Assets;component/Styles/ButtonStyles.xaml"/>
 | 
				
			||||||
 | 
					                <ResourceDictionary Source="/Detection.platform.Assets;component/Styles/TextBoxStyle.xaml"/>-->
 | 
				
			||||||
 | 
					            </ResourceDictionary.MergedDictionaries>
 | 
				
			||||||
 | 
					        </ResourceDictionary>
 | 
				
			||||||
 | 
					    </UserControl.Resources>
 | 
				
			||||||
 | 
					    <Grid Margin="20">
 | 
				
			||||||
 | 
					        <Grid.RowDefinitions>
 | 
				
			||||||
 | 
					            <RowDefinition Height="50"/>
 | 
				
			||||||
 | 
					            <RowDefinition/>
 | 
				
			||||||
 | 
					        </Grid.RowDefinitions>
 | 
				
			||||||
 | 
					        <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="50,0"  HorizontalAlignment="Left">
 | 
				
			||||||
 | 
					            <TextBlock Text="启始时间:" VerticalAlignment="Center" HorizontalAlignment="Center"/>
 | 
				
			||||||
 | 
					            <hc:DateTimePicker Margin="0,0,10,0"  SelectedDateTime="{Binding StartTime}" Height="30"></hc:DateTimePicker>
 | 
				
			||||||
 | 
					            <TextBlock Text="结束时间:" VerticalAlignment="Center" HorizontalAlignment="Center"/>
 | 
				
			||||||
 | 
					            <hc:DateTimePicker SelectedDateTime="{Binding EndTime}" Height="30"></hc:DateTimePicker>
 | 
				
			||||||
 | 
					            <Button Content="查看"  Background="#FF009DFF"  Foreground="White"
 | 
				
			||||||
 | 
					                    Width="70" Margin="5,0"
 | 
				
			||||||
 | 
					                    Command="{Binding QueryDataCommand}"/>
 | 
				
			||||||
 | 
					        </StackPanel>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <Grid Grid.Row="2">
 | 
				
			||||||
 | 
					            <Grid.RowDefinitions>
 | 
				
			||||||
 | 
					                <RowDefinition Height="30"/>
 | 
				
			||||||
 | 
					                <RowDefinition/>
 | 
				
			||||||
 | 
					                <RowDefinition Height="50"/>
 | 
				
			||||||
 | 
					            </Grid.RowDefinitions>
 | 
				
			||||||
 | 
					            <Border Background="#EEE"/>
 | 
				
			||||||
 | 
					            <Grid Background="#FF2A323B" >
 | 
				
			||||||
 | 
					                <Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="200"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="10*"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="10*"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="10*"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="10*"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition />
 | 
				
			||||||
 | 
					                </Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                <TextBlock Text="应用" VerticalAlignment="Center" Grid.Column="0" Foreground="White" HorizontalAlignment="Center"/>
 | 
				
			||||||
 | 
					                <TextBlock Text="状态" VerticalAlignment="Center" Grid.Column="1" Foreground="White"/>
 | 
				
			||||||
 | 
					                <TextBlock Text="时间" VerticalAlignment="Center" Grid.Column="3" Foreground="White"/>
 | 
				
			||||||
 | 
					                <TextBlock Text="操作" VerticalAlignment="Center" Grid.Column="4" Foreground="White"/>
 | 
				
			||||||
 | 
					            </Grid>
 | 
				
			||||||
 | 
					            <ItemsControl Grid.Row="1" ItemsSource="{Binding DataList}">
 | 
				
			||||||
 | 
					                <ItemsControl.ItemTemplate>
 | 
				
			||||||
 | 
					                    <DataTemplate >
 | 
				
			||||||
 | 
					                        <Border BorderBrush="#F7F9FA" BorderThickness="0,0,0,1" Background="Transparent">
 | 
				
			||||||
 | 
					                            <Grid Height="30" Background="Transparent" Name="root">
 | 
				
			||||||
 | 
					                                <Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                                    <ColumnDefinition Width="200"/>
 | 
				
			||||||
 | 
					                                    <ColumnDefinition  Width="60"/>
 | 
				
			||||||
 | 
					                                    <ColumnDefinition />
 | 
				
			||||||
 | 
					                                </Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                                <TextBlock Text="{Binding CreateTime}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
 | 
				
			||||||
 | 
					                                <TextBlock Text="{Binding UserName}" VerticalAlignment="Center" Grid.Column="1"/>
 | 
				
			||||||
 | 
					                                <TextBlock Text="{Binding Message}" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.Column="2"/>
 | 
				
			||||||
 | 
					                            </Grid>
 | 
				
			||||||
 | 
					                        </Border>
 | 
				
			||||||
 | 
					                        <DataTemplate.Triggers>
 | 
				
			||||||
 | 
					                            <Trigger Property="IsMouseOver" Value="True">
 | 
				
			||||||
 | 
					                                <Setter TargetName="root" Property="Background" Value="#F7F9FA"/>
 | 
				
			||||||
 | 
					                            </Trigger>
 | 
				
			||||||
 | 
					                        </DataTemplate.Triggers>
 | 
				
			||||||
 | 
					                    </DataTemplate>
 | 
				
			||||||
 | 
					                </ItemsControl.ItemTemplate>
 | 
				
			||||||
 | 
					            </ItemsControl>
 | 
				
			||||||
 | 
					            <hc:Pagination Grid.Row="2" HorizontalAlignment="Center" FontSize="15"  MaxPageCount="{Binding MaxCountPage}" PageIndex="{Binding PageIndex}" IsJumpEnabled="True">
 | 
				
			||||||
 | 
					                <hc:Interaction.Triggers>
 | 
				
			||||||
 | 
					                    <hc:EventTrigger EventName="PageUpdated">
 | 
				
			||||||
 | 
					                        <hc:EventToCommand Command="{Binding PageUpdatedCmd}" PassEventArgsToCommand="True" />
 | 
				
			||||||
 | 
					                    </hc:EventTrigger>
 | 
				
			||||||
 | 
					                </hc:Interaction.Triggers>
 | 
				
			||||||
 | 
					            </hc:Pagination>
 | 
				
			||||||
 | 
					        </Grid>
 | 
				
			||||||
 | 
					    </Grid>
 | 
				
			||||||
 | 
					</UserControl>
 | 
				
			||||||
@ -0,0 +1,45 @@
 | 
				
			|||||||
 | 
					<UserControl x:Class="StartServerWPF.Modules.Main.Views.LoginViewDialog"
 | 
				
			||||||
 | 
					             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:i="http://schemas.microsoft.com/xaml/behaviors"
 | 
				
			||||||
 | 
					             xmlns:hc="https://handyorg.github.io/handycontrol"
 | 
				
			||||||
 | 
					             xmlns:local="clr-namespace:StartServerWPF.Modules.Main.Views"
 | 
				
			||||||
 | 
					             xmlns:prism="http://prismlibrary.com/"
 | 
				
			||||||
 | 
					             prism:ViewModelLocator.AutoWireViewModel="True"
 | 
				
			||||||
 | 
					             mc:Ignorable="d" 
 | 
				
			||||||
 | 
					             d:DesignHeight="450" d:DesignWidth="800">
 | 
				
			||||||
 | 
					    <prism:Dialog.WindowStyle>
 | 
				
			||||||
 | 
					        <Style TargetType="Window">
 | 
				
			||||||
 | 
					            <Setter Property="Width" Value="800"/>
 | 
				
			||||||
 | 
					            <Setter Property="Height" Value="500"/>
 | 
				
			||||||
 | 
					            <Setter Property="WindowStyle" Value="ToolWindow"/>
 | 
				
			||||||
 | 
					            <Setter Property="ResizeMode" Value="NoResize"/>
 | 
				
			||||||
 | 
					        </Style>
 | 
				
			||||||
 | 
					    </prism:Dialog.WindowStyle>
 | 
				
			||||||
 | 
					    <Grid >
 | 
				
			||||||
 | 
					        <Image Source="../Images/background.jpg" Stretch="UniformToFill"/>
 | 
				
			||||||
 | 
					        <StackPanel  Margin="10" HorizontalAlignment="Center" VerticalAlignment="Center">
 | 
				
			||||||
 | 
					            <TextBlock Text="预警系统管理后台" Foreground="White" FontSize="20" Margin="0,0,0,60" HorizontalAlignment="Center"/>
 | 
				
			||||||
 | 
					            <Border Background="White" CornerRadius="10" >
 | 
				
			||||||
 | 
					                <StackPanel Margin="20" Width="200">
 | 
				
			||||||
 | 
					                    <DockPanel   >
 | 
				
			||||||
 | 
					                        <TextBlock Text="用户名:" VerticalAlignment="Center"/>
 | 
				
			||||||
 | 
					                        <TextBox Text="{Binding Account}" DockPanel.Dock="Right" />
 | 
				
			||||||
 | 
					                    </DockPanel>
 | 
				
			||||||
 | 
					                    <DockPanel Margin="0,20,0,20"  >
 | 
				
			||||||
 | 
					                        <TextBlock Text="密   码:" VerticalAlignment="Center"/>
 | 
				
			||||||
 | 
					                        <hc:PasswordBox UnsafePassword="{Binding Password,UpdateSourceTrigger=PropertyChanged}" IsSafeEnabled="False" ShowClearButton="True" ShowEyeButton="True" DockPanel.Dock="Right"/>
 | 
				
			||||||
 | 
					                    </DockPanel>
 | 
				
			||||||
 | 
					                    <CheckBox Content="保持登录状态" IsChecked="True" Margin="0,10,0,10"/>
 | 
				
			||||||
 | 
					                    <Button Grid.Row="2" Content="登录" Command="{Binding LoginCommand}" Background="#FF2B9FF3" Foreground="White" Width="80"/>
 | 
				
			||||||
 | 
					                </StackPanel>
 | 
				
			||||||
 | 
					            </Border>
 | 
				
			||||||
 | 
					        </StackPanel>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <Grid Background="WhiteSmoke" Opacity="0.5" Visibility="{Binding IsLoadingVisibile}">
 | 
				
			||||||
 | 
					            <local:Loading Message="{Binding LoadingMessage}"/>
 | 
				
			||||||
 | 
					        </Grid>
 | 
				
			||||||
 | 
					    </Grid>
 | 
				
			||||||
 | 
					</UserControl>
 | 
				
			||||||
@ -0,0 +1,55 @@
 | 
				
			|||||||
 | 
					<UserControl x:Class="StartServerWPF.Modules.Main.Views.RealTimeWaveformView"
 | 
				
			||||||
 | 
					             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:prism="http://prismlibrary.com/"
 | 
				
			||||||
 | 
					             prism:ViewModelLocator.AutoWireViewModel="True"
 | 
				
			||||||
 | 
					             mc:Ignorable="d" 
 | 
				
			||||||
 | 
					             d:DesignHeight="450" d:DesignWidth="800">
 | 
				
			||||||
 | 
					    <UserControl.Resources>
 | 
				
			||||||
 | 
					        <ResourceDictionary>
 | 
				
			||||||
 | 
					            <ResourceDictionary.MergedDictionaries>
 | 
				
			||||||
 | 
					                <ResourceDictionary Source="/StartServerWPF.Modules.Main;component/Styles/BaseResources.xaml"/>
 | 
				
			||||||
 | 
					                <!--<ResourceDictionary Source="/StartServerWPF.Modules.Main;component/Styles/ButtonStyles.xaml"/>
 | 
				
			||||||
 | 
					                <ResourceDictionary Source="/StartServerWPF.Modules.Main;component/Styles/TextBoxStyle.xaml"/>-->
 | 
				
			||||||
 | 
					            </ResourceDictionary.MergedDictionaries>
 | 
				
			||||||
 | 
					        </ResourceDictionary>
 | 
				
			||||||
 | 
					    </UserControl.Resources>
 | 
				
			||||||
 | 
					    <Grid Margin="20">
 | 
				
			||||||
 | 
					        <Grid.RowDefinitions>
 | 
				
			||||||
 | 
					            <RowDefinition Height="50"/>
 | 
				
			||||||
 | 
					            <RowDefinition/>
 | 
				
			||||||
 | 
					        </Grid.RowDefinitions>
 | 
				
			||||||
 | 
					        <Border BorderBrush="#DDD" BorderThickness="0,0,0,1"/>
 | 
				
			||||||
 | 
					        <TextBox Text="RealTimeWaveformView" VerticalAlignment="Center" Width="300" HorizontalAlignment="Left" />
 | 
				
			||||||
 | 
					        <Grid Grid.Row="1">
 | 
				
			||||||
 | 
					            <Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                <ColumnDefinition Width="353*"/>
 | 
				
			||||||
 | 
					                <ColumnDefinition Width="27*"/>
 | 
				
			||||||
 | 
					            </Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					            <Grid.RowDefinitions>
 | 
				
			||||||
 | 
					                <RowDefinition Height="30"/>
 | 
				
			||||||
 | 
					                <RowDefinition/>
 | 
				
			||||||
 | 
					            </Grid.RowDefinitions>
 | 
				
			||||||
 | 
					            <Border Background="#EEE" Grid.ColumnSpan="2"/>
 | 
				
			||||||
 | 
					            <Grid Grid.ColumnSpan="2">
 | 
				
			||||||
 | 
					                <Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="40"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="120"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="2*"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="150"/>
 | 
				
			||||||
 | 
					                </Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                <TextBlock Text="序号" VerticalAlignment="Center" HorizontalAlignment="Center"/>
 | 
				
			||||||
 | 
					                <!--<TextBlock Text="头像" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>-->
 | 
				
			||||||
 | 
					                <TextBlock Text="信息" Grid.Column="2" VerticalAlignment="Center" />
 | 
				
			||||||
 | 
					                <TextBlock Text="xx" Grid.Column="3" VerticalAlignment="Center" />
 | 
				
			||||||
 | 
					                <TextBlock Text="操作" Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Center"/>
 | 
				
			||||||
 | 
					                <!--编辑、分配权限、重置密码、删除-->
 | 
				
			||||||
 | 
					            </Grid>
 | 
				
			||||||
 | 
					            <ItemsControl Grid.Row="1" ItemsSource="{Binding Users}" Grid.ColumnSpan="2">
 | 
				
			||||||
 | 
					            </ItemsControl>
 | 
				
			||||||
 | 
					        </Grid>
 | 
				
			||||||
 | 
					    </Grid>
 | 
				
			||||||
 | 
					</UserControl>
 | 
				
			||||||
@ -0,0 +1,55 @@
 | 
				
			|||||||
 | 
					<UserControl x:Class="StartServerWPF.Modules.Main.Views.WaveformPlayBackView"
 | 
				
			||||||
 | 
					             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:prism="http://prismlibrary.com/"
 | 
				
			||||||
 | 
					             prism:ViewModelLocator.AutoWireViewModel="True"
 | 
				
			||||||
 | 
					             mc:Ignorable="d" 
 | 
				
			||||||
 | 
					             d:DesignHeight="450" d:DesignWidth="800">
 | 
				
			||||||
 | 
					    <UserControl.Resources>
 | 
				
			||||||
 | 
					        <ResourceDictionary>
 | 
				
			||||||
 | 
					            <ResourceDictionary.MergedDictionaries>
 | 
				
			||||||
 | 
					                <ResourceDictionary Source="/StartServerWPF.Modules.Main;component/Styles/BaseResources.xaml"/>
 | 
				
			||||||
 | 
					                <!--<ResourceDictionary Source="/StartServerWPF.Modules.Main;component/Styles/ButtonStyles.xaml"/>
 | 
				
			||||||
 | 
					                <ResourceDictionary Source="/StartServerWPF.Modules.Main;component/Styles/TextBoxStyle.xaml"/>-->
 | 
				
			||||||
 | 
					            </ResourceDictionary.MergedDictionaries>
 | 
				
			||||||
 | 
					        </ResourceDictionary>
 | 
				
			||||||
 | 
					    </UserControl.Resources>
 | 
				
			||||||
 | 
					    <Grid Margin="20">
 | 
				
			||||||
 | 
					        <Grid.RowDefinitions>
 | 
				
			||||||
 | 
					            <RowDefinition Height="50"/>
 | 
				
			||||||
 | 
					            <RowDefinition/>
 | 
				
			||||||
 | 
					        </Grid.RowDefinitions>
 | 
				
			||||||
 | 
					        <Border BorderBrush="#DDD" BorderThickness="0,0,0,1"/>
 | 
				
			||||||
 | 
					        <TextBox Text="WaveformPlayBackView" VerticalAlignment="Center" Width="300" HorizontalAlignment="Left"  />
 | 
				
			||||||
 | 
					        <Grid Grid.Row="1">
 | 
				
			||||||
 | 
					            <Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                <ColumnDefinition Width="353*"/>
 | 
				
			||||||
 | 
					                <ColumnDefinition Width="27*"/>
 | 
				
			||||||
 | 
					            </Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					            <Grid.RowDefinitions>
 | 
				
			||||||
 | 
					                <RowDefinition Height="30"/>
 | 
				
			||||||
 | 
					                <RowDefinition/>
 | 
				
			||||||
 | 
					            </Grid.RowDefinitions>
 | 
				
			||||||
 | 
					            <Border Background="#EEE" Grid.ColumnSpan="2"/>
 | 
				
			||||||
 | 
					            <Grid Grid.ColumnSpan="2">
 | 
				
			||||||
 | 
					                <Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="40"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="120"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="2*"/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition/>
 | 
				
			||||||
 | 
					                    <ColumnDefinition Width="150"/>
 | 
				
			||||||
 | 
					                </Grid.ColumnDefinitions>
 | 
				
			||||||
 | 
					                <TextBlock Text="序号" VerticalAlignment="Center" HorizontalAlignment="Center"/>
 | 
				
			||||||
 | 
					                <!--<TextBlock Text="头像" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center"/>-->
 | 
				
			||||||
 | 
					                <TextBlock Text="信息" Grid.Column="2" VerticalAlignment="Center" />
 | 
				
			||||||
 | 
					                <TextBlock Text="xx" Grid.Column="3" VerticalAlignment="Center" />
 | 
				
			||||||
 | 
					                <TextBlock Text="操作" Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Center"/>
 | 
				
			||||||
 | 
					                <!--编辑、分配权限、重置密码、删除-->
 | 
				
			||||||
 | 
					            </Grid>
 | 
				
			||||||
 | 
					            <ItemsControl Grid.Row="1" ItemsSource="{Binding Users}" Grid.ColumnSpan="2">
 | 
				
			||||||
 | 
					            </ItemsControl>
 | 
				
			||||||
 | 
					        </Grid>
 | 
				
			||||||
 | 
					    </Grid>
 | 
				
			||||||
 | 
					</UserControl>
 | 
				
			||||||
					Loading…
					
					
				
		Reference in New Issue