C# Class Bloom.Shell

Afficher le fichier Open project: BloomBooks/BloomDesktop

Méthodes publiques

Свойство Type Description
QuitForSystemShutdown bool
QuitForVersionUpdate bool
UserWantsToOpeReopenProject bool

Méthodes publiques

Méthode Description
DisplayProblemToUser ( string message ) : void

Display a dialog box that reports a problem to the user.

On Linux at least, displaying a dialog on a thread that is not the main GUI thread causes a crash with a segmentation violation. So we try to display on the main thread.

GetShortVersionInfo ( ) : string
ReallyComeToFront ( ) : void

we let the Program call this after it closes the splash screen

SetWindowText ( string bookName ) : void
Shell ( Func projectViewFactory, CollectionSettings collectionSettings, BookDownloadStartingEvent bookDownloadStartingEvent, LibraryClosing libraryClosingEvent, QueueRenameOfCollection queueRenameOfCollection, ControlKeyEvent controlKeyEvent ) : System

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClosing ( CancelEventArgs e ) : void
OnHandleCreated ( EventArgs e ) : void
ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Private Methods

Méthode Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsOnScreen ( Rectangle rect ) : bool

Is a significant (100 x 100) portion of the form on-screen?

On1024x586 ( object sender, EventArgs e ) : void
On1024x600Click ( object sender, EventArgs e ) : void
On1024x768 ( object sender, EventArgs e ) : void
On800x600Click ( object sender, EventArgs e ) : void
Shell_Activated ( object sender, EventArgs e ) : void
Shell_Deactivate ( object sender, EventArgs e ) : void
Shell_Load ( object sender, EventArgs e ) : void
Shell_ResizeEnd ( object sender, EventArgs e ) : void

Method Details

DisplayProblemToUser() public static méthode

Display a dialog box that reports a problem to the user.
On Linux at least, displaying a dialog on a thread that is not the main GUI thread causes a crash with a segmentation violation. So we try to display on the main thread.
public static DisplayProblemToUser ( string message ) : void
message string
Résultat void

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

GetShortVersionInfo() public static méthode

public static GetShortVersionInfo ( ) : string
Résultat string

OnClosing() protected méthode

protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
Résultat void

OnHandleCreated() protected méthode

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

ProcessCmdKey() protected méthode

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg Message
keyData Keys
Résultat bool

ReallyComeToFront() public méthode

we let the Program call this after it closes the splash screen
public ReallyComeToFront ( ) : void
Résultat void

SetWindowText() public méthode

public SetWindowText ( string bookName ) : void
bookName string
Résultat void

Shell() public méthode

public Shell ( Func projectViewFactory, CollectionSettings collectionSettings, BookDownloadStartingEvent bookDownloadStartingEvent, LibraryClosing libraryClosingEvent, QueueRenameOfCollection queueRenameOfCollection, ControlKeyEvent controlKeyEvent ) : System
projectViewFactory Func
collectionSettings CollectionSettings
bookDownloadStartingEvent BookDownloadStartingEvent
libraryClosingEvent LibraryClosing
queueRenameOfCollection QueueRenameOfCollection
controlKeyEvent ControlKeyEvent
Résultat System

Property Details

QuitForSystemShutdown public_oe property

public bool QuitForSystemShutdown
Résultat bool

QuitForVersionUpdate public_oe property

used when the user does an in-app installer download; after we close down, Program will read this and return control to Sparkle
public bool QuitForVersionUpdate
Résultat bool

UserWantsToOpeReopenProject public_oe property

public bool UserWantsToOpeReopenProject
Résultat bool