示例#1
0
        private void CheckItemIsEnabled(SelectorItem viewItem, object item)
        {
            var incomingSharedFolderNode = item as IncomingSharedFolderNodeViewModel;

            if (incomingSharedFolderNode != null)
            {
                viewItem.IsEnabled = incomingSharedFolderNode.IsEnabledForCopyMoveImport;
                return;
            }

            var folderNode = item as FolderNodeViewModel;

            if (folderNode != null)
            {
                viewItem.IsEnabled = !(folderNode.Parent.IsForSelectFolder &&
                                       SelectedNodesService.IsSelectedNode(folderNode));
            }
        }
示例#2
0
 private void ResetImport()
 {
     this.ImportPanelControl.Reset();
     SelectedNodesService.ClearSelectedNodes();
     this.ViewModel.VisiblePanel = PanelType.None;
 }