private void doSwap(ref List <DiscoverMeUser> i_ListOfUsers, int j, int g) { DiscoverMeUser temp = i_ListOfUsers[j]; i_ListOfUsers[j] = i_ListOfUsers[j + g]; i_ListOfUsers[j + g] = temp; }
private LazyPictureBoxProxy fetchPanelPicture(DiscoverMeUser i_Friend, int i_Width, int i_Height) { LazyPictureBoxProxy friendPhoto = new LazyPictureBoxProxy(); friendPhoto.Size = new System.Drawing.Size(i_Width, i_Height); friendPhoto.Left = 3 + (((IndexLineCounter % 2) * friendPhoto.Right) + ((IndexLineCounter % 2) * 3)); friendPhoto.Top = PositionOfPictureInPanelFromLeft; friendPhoto.SizeMode = PictureBoxSizeMode.StretchImage; friendPhoto.Load(i_Friend.PictureNormalURL); if (IndexLineCounter % 2 != 0) { PositionOfPictureInPanelFromLeft = friendPhoto.Bottom + 2; } IndexLineCounter++; return(friendPhoto); }