C# 클래스 Paint.HomeScreen

파일 보기 프로젝트 열기: RandolphBurt/MonoGame-iOS-SimplePaint 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
OnNewImageLandscapeSelected ( EventArgs e ) : void
OnNewImagePortraitSelected ( EventArgs e ) : void
OnPaintSelected ( PictureSelectedEventArgs e ) : void
OnPlaybackSelected ( PictureSelectedEventArgs e ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

DidReceiveMemoryWarning() 공개 메소드

public DidReceiveMemoryWarning ( ) : void
리턴 void

HomeScreen() 공개 메소드

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 ///
리턴 System

LoadAndDisplayImages() 공개 메소드

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

OnNewImageLandscapeSelected() 보호된 메소드

protected OnNewImageLandscapeSelected ( EventArgs e ) : void
e EventArgs
리턴 void

OnNewImagePortraitSelected() 보호된 메소드

protected OnNewImagePortraitSelected ( EventArgs e ) : void
e EventArgs
리턴 void

OnPaintSelected() 보호된 메소드

protected OnPaintSelected ( PictureSelectedEventArgs e ) : void
e PictureSelectedEventArgs
리턴 void

OnPlaybackSelected() 보호된 메소드

protected OnPlaybackSelected ( PictureSelectedEventArgs e ) : void
e PictureSelectedEventArgs
리턴 void

ShouldAutorotate() 공개 메소드

public ShouldAutorotate ( ) : bool
리턴 bool

ViewDidAppear() 공개 메소드

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

ViewDidLoad() 공개 메소드

Basic form initialization
public ViewDidLoad ( ) : void
리턴 void

WillAnimateRotation() 공개 메소드

public WillAnimateRotation ( UIInterfaceOrientation toInterfaceOrientation, double duration ) : void
toInterfaceOrientation UIInterfaceOrientation
duration double
리턴 void