C# Класс Paint.HomeScreen

Показать файл Открыть проект Примеры использования класса

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