C# 클래스 Bloom.Shell

파일 보기 프로젝트 열기: BloomBooks/BloomDesktop

공개 프로퍼티들

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