C# Class Paint.HomeScreen

Afficher le fichier Open project: RandolphBurt/MonoGame-iOS-SimplePaint Class Usage Examples

Private Properties

Свойство Type Description
AddImageToFileListAndScrollToDisplay void
CopyImage string
CreateFilenameResolver FilenameResolver
DeleteCurrentImageFromFileListAndUpdateDisplay void
ExportImageToPhotoGallery void
InvokeCommandAndShowBusyIndicator void
LoadImageWithIndex void
PictureIdFromFile Guid
PositionScrollViewContent void
PostImageToSocialNetwork void
PostImageToTwitterIOS5 void
ReleaseDesignerOutlets void
SelectedPictureEventArgs PictureSelectedEventArgs
SendEmail void
ShouldAutorotateToInterfaceOrientation bool
btnCopy_TouchUpInside void
btnDelete_TouchUpInside void
btnEmail_TouchUpInside void
btnExportPhoto_TouchUpInside void
btnFacebook_TouchUpInside void
btnNewLandscape_TouchUpInside void
btnNewPortrait_TouchUpInside void
btnPaint_TouchUpInside void
btnPlayback_TouchUpInside void
btnTwitter_TouchUpInside void
scrollView_Scrolled void

Méthodes publiques

Méthode Description
DidReceiveMemoryWarning ( ) : void
HomeScreen ( string imageDataPath, string masterImagePath ) : System

Initializes a new instance of the Paint.HomeScreen class.

LoadAndDisplayImages ( ) : void

Loads all of our images and displays them on screen ready for editing

ShouldAutorotate ( ) : bool
ViewDidAppear ( bool animated ) : void

Basic form initialization

ViewDidLoad ( ) : void

Basic form initialization

WillAnimateRotation ( UIInterfaceOrientation toInterfaceOrientation, double duration ) : void

Méthodes protégées

Méthode Description
OnNewImageLandscapeSelected ( EventArgs e ) : void
OnNewImagePortraitSelected ( EventArgs e ) : void
OnPaintSelected ( PictureSelectedEventArgs e ) : void
OnPlaybackSelected ( PictureSelectedEventArgs e ) : void

Private Methods

Méthode Description
AddImageToFileListAndScrollToDisplay ( string imageFilename ) : void

Adds the image to the file list and then scrolls the screen to display that image

CopyImage ( Guid pictureId ) : string

Copies the image and all associated data

CreateFilenameResolver ( Guid pictureId ) : FilenameResolver

Creates the filename resolver.

DeleteCurrentImageFromFileListAndUpdateDisplay ( ) : void

Deletes the current image from the file list and updates the display.

ExportImageToPhotoGallery ( Guid pictureId ) : void

Exports the image to the photo gallery.

InvokeCommandAndShowBusyIndicator ( Action command ) : void
LoadImageWithIndex ( int uiViewIndex, int fileListIndex ) : void
PictureIdFromFile ( int selectedFile ) : Guid

Calculates the picture ID based on selected file

PositionScrollViewContent ( ) : void

Sets the scroll view ContentSize to be the correct size along with all the images inside it.

PostImageToSocialNetwork ( Guid pictureId, SLServiceKind socialNetwork ) : void

Offers the option to post the image to facebook or twitter

PostImageToTwitterIOS5 ( Guid pictureId ) : void

Posts the image to twitter (when using iOS5).

ReleaseDesignerOutlets ( ) : void
SelectedPictureEventArgs ( ) : PictureSelectedEventArgs

Returns a PictureSelectedEventArgs containing a reference to the selected picture

SendEmail ( Guid pictureId ) : void

Offers the option to email the image to someone

ShouldAutorotateToInterfaceOrientation ( UIInterfaceOrientation toInterfaceOrientation ) : bool
btnCopy_TouchUpInside ( MonoTouch sender ) : void
btnDelete_TouchUpInside ( MonoTouch sender ) : void
btnEmail_TouchUpInside ( MonoTouch sender ) : void
btnExportPhoto_TouchUpInside ( MonoTouch sender ) : void
btnFacebook_TouchUpInside ( MonoTouch sender ) : void
btnNewLandscape_TouchUpInside ( MonoTouch sender ) : void
btnNewPortrait_TouchUpInside ( MonoTouch sender ) : void
btnPaint_TouchUpInside ( MonoTouch sender ) : void
btnPlayback_TouchUpInside ( MonoTouch sender ) : void
btnTwitter_TouchUpInside ( MonoTouch sender ) : void
scrollView_Scrolled ( object sender, EventArgs e ) : void

Method Details

DidReceiveMemoryWarning() public méthode

public DidReceiveMemoryWarning ( ) : void
Résultat void

HomeScreen() public méthode

Initializes a new instance of the Paint.HomeScreen class.
public HomeScreen ( string imageDataPath, string masterImagePath ) : System
imageDataPath string /// Path to where all the image data (save points and info file) should be saved ///
masterImagePath string /// Path to where all the master images are stor ///
Résultat System

LoadAndDisplayImages() public méthode

Loads all of our images and displays them on screen ready for editing
public LoadAndDisplayImages ( ) : void
Résultat void

OnNewImageLandscapeSelected() protected méthode

protected OnNewImageLandscapeSelected ( EventArgs e ) : void
e EventArgs
Résultat void

OnNewImagePortraitSelected() protected méthode

protected OnNewImagePortraitSelected ( EventArgs e ) : void
e EventArgs
Résultat void

OnPaintSelected() protected méthode

protected OnPaintSelected ( PictureSelectedEventArgs e ) : void
e PictureSelectedEventArgs
Résultat void

OnPlaybackSelected() protected méthode

protected OnPlaybackSelected ( PictureSelectedEventArgs e ) : void
e PictureSelectedEventArgs
Résultat void

ShouldAutorotate() public méthode

public ShouldAutorotate ( ) : bool
Résultat bool

ViewDidAppear() public méthode

Basic form initialization
public ViewDidAppear ( bool animated ) : void
animated bool /// If set to true animated. ///
Résultat void

ViewDidLoad() public méthode

Basic form initialization
public ViewDidLoad ( ) : void
Résultat void

WillAnimateRotation() public méthode

public WillAnimateRotation ( UIInterfaceOrientation toInterfaceOrientation, double duration ) : void
toInterfaceOrientation UIInterfaceOrientation
duration double
Résultat void