Automatak.Simulator.SimulatorForm.GetMetrics C# (CSharp) Method

GetMetrics() private method

private GetMetrics ( ) : IEnumerable
return IEnumerable
        private IEnumerable<Metric> GetMetrics()
        {
            var tab = this.tabControlPlugins.SelectedTab;
            if (tab == null)
            {
                return Enumerable.Empty<Metric>();
            }
            else
            {
                var view = tab.Tag as TreeView;
                var node = view.SelectedNode;
                if (node == null)
                {
                    return Enumerable.Empty<Metric>();
                }
                else
                {
                    return (node.Tag as ISimulatorNode).Metrics;
                }
            }
        }