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)); } }
private void ResetImport() { this.ImportPanelControl.Reset(); SelectedNodesService.ClearSelectedNodes(); this.ViewModel.VisiblePanel = PanelType.None; }