public Task RefreshFolderList() { Folders = new List <FolderModel>(); SelectedFolder = null; return(Task.Run(() => { Folders = FolderUtils.GetFolderModelList().ToList(); IsLoaded = true; })); }
private void quickMoveButton_Click(object sender, RibbonControlEventArgs e) { using (var dialog = new QuickMoveForm(model)) { dialog.ShowDialog(); if (dialog.DialogResult == System.Windows.Forms.DialogResult.OK) { if (model.CheckValid()) { FolderUtils.MoveCurrentSelectionToFolder(model.SelectedFolder.Id, model.SelectedFolder.StoreId); } } } }