private void afterSelectPicture(Object sender, Picture selectedPicture) { TradeUI tradeScreen = new TradeUI(); tradeScreen.setTradePictures(otherUserPicture, selectedPicture); tradeScreen.Show(); tradeScreen.Disposed += (someSender, someArgs) => { this.Dispose(); }; }
public void setMainPicture(Picture mainPicture) { selectedPicture = mainPicture; mainPictureBox.Image = mainPicture.getImage(); titleLabel.Text = mainPicture.getTitle(); descriptionLabel.Text = mainPicture.getDescription(); ownerLabel.Text = mainPicture.getOwner(); }
private void showPictureDetails(object sender, Picture pic) { PictureDetails detailsScreen = new PictureDetails(); detailsScreen.setMainPicture(pic); detailsScreen.Show(); }
public void addPicture(Picture newPicture) { photobook.addPicture(newPicture); }
public void setOtherUserPicture(Picture otherUserPicture) { this.otherUserPicture = otherUserPicture; }
public void updatePicture(Picture oldPicture) { int index = pictures.IndexOf(oldPicture); if(index >= 0) { pictures.RemoveAt(index); pictures.Add(oldPicture); } }
public void savePicture(Picture newPicture) { pictures.Add(newPicture); }
public void addPicture(Picture newPicture) { PictureDAO.currentInstance.save(newPicture); }
public Trade(Picture imgA,Picture imgB) { this.pictureA = imgA; this.pictureB = imgB; state = tradeStateType.pending; }