C# Class Paint.HomeScreen

Mostrar archivo Open project: RandolphBurt/MonoGame-iOS-SimplePaint Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Protected Methods

Method Description
OnNewImageLandscapeSelected ( EventArgs e ) : void
OnNewImagePortraitSelected ( EventArgs e ) : void
OnPaintSelected ( PictureSelectedEventArgs e ) : void
OnPlaybackSelected ( PictureSelectedEventArgs e ) : void

Private Methods

Method 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 method

public DidReceiveMemoryWarning ( ) : void
return void

HomeScreen() public method

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 ///
return System

LoadAndDisplayImages() public method

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

OnNewImageLandscapeSelected() protected method

protected OnNewImageLandscapeSelected ( EventArgs e ) : void
e EventArgs
return void

OnNewImagePortraitSelected() protected method

protected OnNewImagePortraitSelected ( EventArgs e ) : void
e EventArgs
return void

OnPaintSelected() protected method

protected OnPaintSelected ( PictureSelectedEventArgs e ) : void
e PictureSelectedEventArgs
return void

OnPlaybackSelected() protected method

protected OnPlaybackSelected ( PictureSelectedEventArgs e ) : void
e PictureSelectedEventArgs
return void

ShouldAutorotate() public method

public ShouldAutorotate ( ) : bool
return bool

ViewDidAppear() public method

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

ViewDidLoad() public method

Basic form initialization
public ViewDidLoad ( ) : void
return void

WillAnimateRotation() public method

public WillAnimateRotation ( UIInterfaceOrientation toInterfaceOrientation, double duration ) : void
toInterfaceOrientation UIInterfaceOrientation
duration double
return void