Alquimiaware.NuGetUnity.SearchTab.RenderResultList C# (CSharp) Method

RenderResultList() private method

private RenderResultList ( ) : void
return void
        private void RenderResultList()
        {
            using (GUILayoutEx.Vertical())
            {
                this.ListScroll = EditorGUILayout.BeginScrollView(
                        this.ListScroll,
                        GUILayout.ExpandWidth(true),
                        GUILayout.MaxWidth(2000));

                var results = this.searchResult
                    .Split('\n')
                    .Where(n => !string.IsNullOrEmpty(n))
                    .Select(n => n.Trim());
                // Trim is important to remove invisible chars, that conflict with nuget

                foreach (var packageName in results)
                {
                    using (GUILayoutEx.Vertical())
                    {
                        EditorGUILayout.Space();

                        using (GUILayoutEx.Horizontal())
                        {
                            GUILayout.Label(packageName, EditorStyles.largeLabel);
                            EditorGUILayout.Space();
                            if (GUILayout.Button("Install", GUILayout.MinWidth(80)))
                                this.Install(packageName);

                            GUILayout.FlexibleSpace();
                        }
                    }
                }

                EditorGUILayout.EndScrollView();
            }
        }