public bool IsParentAccepted(PanelItemBase parent) { var folder = parent as FilePanelItem; return((parent is DrivePanelItem) || parent.GetType().Name.Equals(SHARE_TYPE_NAME) || (folder != null && folder.IsDirectory)); }
public AddonCommandStarter(AddonMenuItem menuItem, PanelItemBase panelItem) { if (menuItem == null) { throw new ArgumentNullException("menuItem"); } if (panelItem == null) { throw new ArgumentNullException("panelItem"); } m_PanelItem = panelItem; m_MenuItem = menuItem; var factoryManager = App.Resolve <IPanelItemFactoryManager>(); m_Checker = factoryManager.GetAvailabilityChecker(m_PanelItem.GetType()); }