1. 同步界面优化

2. 去掉无用注释
dev
陈伟 2025-03-25 14:40:22 +08:00
parent a849587c66
commit 06faad7524
2 changed files with 7 additions and 5 deletions

View File

@ -253,8 +253,7 @@ namespace Hopetry.Services
Console.WriteLine("mybucket does not exist");
}
}
// todo 下载
public async Task DownLoadObject(string bucketName, string objectKey, string localDir, string objectETag)
{
var index = objectKey.LastIndexOf("/", StringComparison.Ordinal);

View File

@ -102,11 +102,13 @@
</h:Row>
<h:Row>
<ComboBox Width="250" h:Cattach.Title="同时下载任务数"
<ComboBox Width="250" h:Cattach.Title="同时下载"
HorizontalAlignment="Left"
Style="{DynamicResource {x:Static h:ComboBoxKeys.Label}}"
SelectedValue="{Binding TaskCount, Mode=TwoWay}">
<h:Interaction.Triggers>
<h:EventTrigger EventName="SelectionChanged">
<h:InvokeCommandAction Command="{Binding ComboBox_SelectionChanged}"/>
<h:InvokeCommandAction Command="{Binding ComboBox_SelectionChanged}" />
</h:EventTrigger>
</h:Interaction.Triggers>
<system:Int32>1</system:Int32>
@ -118,7 +120,8 @@
</h:Row>
<h:Row>
<Button Margin="0 5 0 5" Content="立即同步一次" HorizontalAlignment="Left" Width="150"
Style="{DynamicResource {x:Static h:ButtonKeys.Accent}}" Command="{Binding SyncData}" />
Style="{DynamicResource {x:Static h:ButtonKeys.Accent}}"
Command="{Binding SyncData}" />
</h:Row>
</StackPanel>
</GroupBox>