LoyoutViewModel 构造函数修改
parent
69d1744a64
commit
730d5c8cec
|
|
@ -130,9 +130,9 @@ namespace HeBianGu.App.Disk
|
|||
public ICommand DeleteFolderCommand { get; }
|
||||
|
||||
//public ICommand SelectItemsCommand { get; }
|
||||
public LoyoutViewModel(SendViewModel sendViewModel)
|
||||
public LoyoutViewModel()
|
||||
{
|
||||
_sendViewModel = sendViewModel;
|
||||
//_sendViewModel = sendViewModel;
|
||||
_uploadService = new FileUploadService();
|
||||
UploadCommand = new AsyncRelayCommand(async () => await UploadFile());
|
||||
UploadCommand1 = new AsyncRelayCommand(async () => await UploadFile1());
|
||||
|
|
@ -144,9 +144,9 @@ namespace HeBianGu.App.Disk
|
|||
// 初始化Timer
|
||||
_progressTimer = new Timer(1000);
|
||||
_progressTimer.Elapsed += UpdateProgress;
|
||||
_sendViewModel.UpLoadItems.CollectionChanged += (s, e) => { _sendViewModel.UpdateUploadingItems(); };
|
||||
//_sendViewModel.UpLoadItems.CollectionChanged += (s, e) => { _sendViewModel.UpdateUploadingItems(); };
|
||||
//加载上传完成列表
|
||||
GetCompletedFiles();
|
||||
//GetCompletedFiles();
|
||||
}
|
||||
|
||||
private async Task DoSelectDirCommand()
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ namespace HeBianGu.App.Disk
|
|||
{
|
||||
SelectLink = LinkActions[0];
|
||||
}));
|
||||
|
||||
UpLoadItems.CollectionChanged += (s, e) => { UpdateUploadingItems(); };
|
||||
}
|
||||
|
||||
protected override void Loaded(string args)
|
||||
|
|
|
|||
Loading…
Reference in New Issue