Compare commits
2 Commits
bdb18e372b
...
06faad7524
| Author | SHA1 | Date |
|---|---|---|
|
|
06faad7524 | |
|
|
a849587c66 |
|
|
@ -254,7 +254,6 @@ namespace Hopetry.Services
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo 下载
|
|
||||||
public async Task DownLoadObject(string bucketName, string objectKey, string localDir, string objectETag)
|
public async Task DownLoadObject(string bucketName, string objectKey, string localDir, string objectETag)
|
||||||
{
|
{
|
||||||
var index = objectKey.LastIndexOf("/", StringComparison.Ordinal);
|
var index = objectKey.LastIndexOf("/", StringComparison.Ordinal);
|
||||||
|
|
|
||||||
|
|
@ -102,11 +102,13 @@
|
||||||
|
|
||||||
</h:Row>
|
</h:Row>
|
||||||
<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}">
|
SelectedValue="{Binding TaskCount, Mode=TwoWay}">
|
||||||
<h:Interaction.Triggers>
|
<h:Interaction.Triggers>
|
||||||
<h:EventTrigger EventName="SelectionChanged">
|
<h:EventTrigger EventName="SelectionChanged">
|
||||||
<h:InvokeCommandAction Command="{Binding ComboBox_SelectionChanged}"/>
|
<h:InvokeCommandAction Command="{Binding ComboBox_SelectionChanged}" />
|
||||||
</h:EventTrigger>
|
</h:EventTrigger>
|
||||||
</h:Interaction.Triggers>
|
</h:Interaction.Triggers>
|
||||||
<system:Int32>1</system:Int32>
|
<system:Int32>1</system:Int32>
|
||||||
|
|
@ -118,7 +120,8 @@
|
||||||
</h:Row>
|
</h:Row>
|
||||||
<h:Row>
|
<h:Row>
|
||||||
<Button Margin="0 5 0 5" Content="立即同步一次" HorizontalAlignment="Left" Width="150"
|
<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>
|
</h:Row>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</GroupBox>
|
</GroupBox>
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,6 @@ public class SyncViewModel : MvcViewModelBase
|
||||||
|
|
||||||
protected override void Init()
|
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)
|
public SyncViewModel(ISerializerService serializerService, MinioService minioService)
|
||||||
|
|
@ -67,20 +58,6 @@ public class SyncViewModel : MvcViewModelBase
|
||||||
Console.WriteLine("Loaded");
|
Console.WriteLine("Loaded");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private List<string> _enumValues;
|
|
||||||
|
|
||||||
public List<string> EnumValues
|
|
||||||
{
|
|
||||||
get { return _enumValues; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
_enumValues = value;
|
|
||||||
RaisePropertyChanged();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private int _taskCount = 3;
|
private int _taskCount = 3;
|
||||||
|
|
||||||
public int TaskCount
|
public int TaskCount
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue