Compare commits
No commits in common. "06faad752447e29ce095de71c9318cb9a65392be" and "bdb18e372b2c4bb0a816dd3835ccbe90a6d6593b" have entirely different histories.
06faad7524
...
bdb18e372b
|
|
@ -253,7 +253,8 @@ 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);
|
||||
|
|
|
|||
|
|
@ -102,13 +102,11 @@
|
|||
|
||||
</h:Row>
|
||||
<h:Row>
|
||||
<ComboBox Width="250" h:Cattach.Title="同时下载"
|
||||
HorizontalAlignment="Left"
|
||||
Style="{DynamicResource {x:Static h:ComboBoxKeys.Label}}"
|
||||
<ComboBox Width="250" h:Cattach.Title="同时下载任务数"
|
||||
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>
|
||||
|
|
@ -120,8 +118,7 @@
|
|||
</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>
|
||||
|
|
|
|||
|
|
@ -18,6 +18,15 @@ 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)
|
||||
|
|
@ -58,6 +67,20 @@ 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue