Пример #1
0
        public Task RefreshFolderList()
        {
            Folders        = new List <FolderModel>();
            SelectedFolder = null;

            return(Task.Run(() => {
                Folders = FolderUtils.GetFolderModelList().ToList();
                IsLoaded = true;
            }));
        }
Пример #2
0
 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);
             }
         }
     }
 }