private LibraryView CreateLibraryView(SteamLibrary library)
        {
            LibraryView libraryView = new LibraryView(SteamData, library);

            libraryView.Parent = layout;
            libraryView.Dock   = DockStyle.Fill;
            libraryView.Margin = new Padding(3, 3, 0, 3);

            return(libraryView);
        }
        protected virtual void OnSteamDataChanged()
        {
            // Remove the existing views.
            if (layout.ColumnCount > 0)
            {
                layout.Controls.Clear();
                layout.ColumnStyles.Clear();
                layout.ColumnCount = 0;
            }

            // Create new library views.
            if (steamData != null)
            {
                foreach (SteamLibrary library in steamData.Libraries)
                {
                    layout.ColumnCount += 1;
                    layout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f / steamData.Libraries.Count));

                    // Create library view.
                    LibraryView libraryView = CreateLibraryView(library);
                    layout.SetColumn(libraryView, layout.ColumnCount - 1);
                }
            }
        }
 public AppListDragData(LibraryView origin)
 {
     Origin = origin;
     Apps   = new List <SteamApp>();
 }