Compare commits

...

2 Commits

Author SHA1 Message Date
陈伟 06faad7524 1. 同步界面优化
2. 去掉无用注释
2025-03-25 14:40:22 +08:00
陈伟 a849587c66 代码缩减 2025-03-25 13:24:59 +08:00
3 changed files with 7 additions and 28 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>

View File

@ -18,15 +18,6 @@ public class SyncViewModel : MvcViewModelBase
protected override void Init()
{
Console.WriteLine("init");
EnumValues = ["1", "2", "3", "4", "5"];
//RaisePropertyChanged();
/*LinkActions.Add(new LinkAction() { Action = "Space", Controller = "Loyout", DisplayName = "会话", Logo = "\xe613" });
Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Loaded, new Action(() =>
{
SelectLink = LinkActions[0];
}));*/
}
public SyncViewModel(ISerializerService serializerService, MinioService minioService)
@ -67,20 +58,6 @@ public class SyncViewModel : MvcViewModelBase
Console.WriteLine("Loaded");
}
private List<string> _enumValues;
public List<string> EnumValues
{
get { return _enumValues; }
set
{
_enumValues = value;
RaisePropertyChanged();
}
}
private int _taskCount = 3;
public int TaskCount