C# Класс Bloom.Shell

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
QuitForSystemShutdown bool
QuitForVersionUpdate bool
UserWantsToOpeReopenProject bool

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

Приватные методы

Метод Описание
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

Описание методов

DisplayProblemToUser() публичный статический Метод

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
Результат void

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

GetShortVersionInfo() публичный статический Метод

public static GetShortVersionInfo ( ) : string
Результат string

OnClosing() защищенный Метод

protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
Результат void

OnHandleCreated() защищенный Метод

protected OnHandleCreated ( EventArgs e ) : void
e EventArgs
Результат void

ProcessCmdKey() защищенный Метод

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg Message
keyData Keys
Результат bool

ReallyComeToFront() публичный Метод

we let the Program call this after it closes the splash screen
public ReallyComeToFront ( ) : void
Результат void

SetWindowText() публичный Метод

public SetWindowText ( string bookName ) : void
bookName string
Результат void

Shell() публичный Метод

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
Результат System

Описание свойств

QuitForSystemShutdown публичное свойство

public bool QuitForSystemShutdown
Результат bool

QuitForVersionUpdate публичное свойство

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
Результат bool

UserWantsToOpeReopenProject публичное свойство

public bool UserWantsToOpeReopenProject
Результат bool