初始化上传

This commit is contained in:
2025-08-26 08:37:44 +08:00
commit 31d81b91b6
448 changed files with 80981 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="常用工具集.MySQL定时备份"
xmlns:vm ="clr-namespace:常用工具集.ViewModel._04破解及系统相关"
x:CompileBindings="True"
x:DataType="vm:MySQL定时备份ViewModel">
<UserControl.DataContext>
<vm:MySQL定时备份ViewModel />
</UserControl.DataContext>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20" />
<RowDefinition Height="60" />
<RowDefinition Height="60" />
<RowDefinition Height="60" />
<RowDefinition Height="60" />
<RowDefinition Height="60" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<TextBlock Text="mysqldump所在目录" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0" />
<TextBox Text="{Binding FilePath}" Grid.Column="1" Grid.ColumnSpan="4" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Width="390" Margin="10,0,0,0"/>
<Button Grid.Column="5" Grid.Row="1" Content="查询" HorizontalAlignment="Left" VerticalAlignment="Center" Command="{Binding FindPathCmd}" Margin="10,0,0,0" />
<TextBlock Text="MySQL用户名" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0" />
<TextBox Text="{Binding UserName}" Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" Width="99" />
<TextBlock Text="MySQL密码" Grid.Column="2" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0"/>
<TextBox Text="{Binding Password}" Grid.Column="3" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" Width="99" />
<TextBlock Text="需要备份的库" Grid.Column="4" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0" />
<TextBox Text="{Binding DatabaseName}" Grid.Column="5" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" Width="99" />
<TextBlock Text="每天几点钟开始备份" Grid.Column="0" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0" />
<TimePicker UseSeconds="True" SelectedTime="{Binding SelectedTime}" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="250"/>
<!--<hc:TimePicker SelectedTime="{Binding SelectedTime}" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Width="99" Style="{StaticResource TimePickerPlus}">
<hc:TimePicker.Clock>
<hc:ListClock/>
</hc:TimePicker.Clock>
</hc:TimePicker>-->
<TextBlock Text="备份到哪" Grid.Column="0" Grid.Row="4" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0"/>
<TextBox Text="{Binding BackPath}" Grid.Column="1" Grid.ColumnSpan="4" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Left" Width="390" Margin="10,0,0,0"/>
<Button Grid.Row="5" Grid.Column="2" Content="创建备份计划" Command="{Binding CreateBackPlanCmd}" />
</Grid>
</UserControl>