public override System.Collections.Generic.IEnumerable<IPathNode> GetNodeChildren(CodeOwls.PowerShell.Provider.PathNodeProcessors.IProviderContext context) { var children = _scale.Scale.Ranges; foreach( var child in children ) { yield return new RangeNodeFactory(_scale.Scale, child); } }
public override IEnumerable<INodeFactory> GetNodeChildren(CodeOwls.PowerShell.Provider.PathNodeProcessors.IContext context) { var factories = new List<INodeFactory>(); var entities = from entity in _drive.GetPOCOs() select entity; foreach (var entity in entities) { var factory = CreateNodeFactoryForEntity(entity); factories.Add(factory); } return factories; }
public override IEnumerable<IPathNode> GetNodeChildren(CodeOwls.PowerShell.Provider.PathNodeProcessors.IProviderContext providerContext) { return from assembly in AppDomain.CurrentDomain.GetAssemblies() select new AssemblyPathNode(assembly) as IPathNode; }
public override IEnumerable<IPathNode> GetNodeChildren(CodeOwls.PowerShell.Provider.PathNodeProcessors.IProviderContext providerContext) { return from type in _assembly.GetExportedTypes() select new TypePathNode(type) as IPathNode; }
private void OnShellCommandExecutionStateChange(object sender, CodeOwls.PowerShell.Host.Utility.EventArgs<bool> e) { var statusAnimation = _statusBarAnimation; if( null == statusAnimation ) { return; } statusAnimation.IsPSIconEnabled = e.Data; }