Exemple #1
0
        public static GridState BuildCurrentGridState(this IConnection connection, IWebsiteState websiteState)
        {
            GridState oldGrid = new GridState()
            {
                Size = websiteState.ActiveIconGridSize
            };

            oldGrid.Cells = connection.ActiveGridIcons();
            return(oldGrid);
        }
 public IEnumerable <IconPosition> Process()
 {
     using (IConnection connection = ConnectionFactory.Create()) {
         return(connection.ActiveGridIcons().ForceLoad());
     }
 }