Exemplo n.º 1
0
 private void AddPhotoInGridColumn(GridColum _GridColumn, Photo PhotoToAdd)
 {
     if (_GridColumn.ColumnData == null)
     {
         _GridColumn.ColumnData = new List <Photo>();
     }
     _GridColumn.ColumnData.Add(PhotoToAdd);
     _GridColumn.ColumnHeight = _GridColumn.ColumnHeight + PhotoToAdd.Height + 20;
 }
Exemplo n.º 2
0
        private GridColum GetSmallest(GridColum[] AllGridColums)
        {
            foreach (var item in AllGridColums)
            {
                if (item.ColumnHeight == 0)
                {
                    return(item);
                }
            }

            GridColum _Smallest = AllGridColums.OrderBy(x => x.ColumnHeight).FirstOrDefault();

            return(_Smallest);
        }