C# 클래스 OnlineVideos.Sites.WebAutomation.BrowserHost.BrowserForm

파일 보기 프로젝트 열기: offbyoneBB/mp-onlinevideos2

Private Properties

프로퍼티 타입 설명
BrowserForm_KeyDown void
BrowserForm_Load void
ForceQuit void
HandleKeyPress void
OnNewAction void
RemoteProcessing_OnNewAction void
SetCurrentScreen void
SetScreenState void
tmrKeepOnTop_Tick void
webBrowser_PreviewKeyDown void

공개 메소드들

메소드 설명
BrowserForm ( string connectorType, string videoInfo, string userName, string password ) : System

This form is used to play a video - we use separate exe as there is no reliable way to dispose of the web browser between sessions and this seemed to cause issues when playing multiple videos

ForceQuitting ( ) : bool

Method to pass to the connector to see if the form is force closing

보호된 메소드들

메소드 설명
WndProc ( Message &msg ) : void

Used to pass messages to remotes. Pre-filter to only messages we're likely to be interested in

비공개 메소드들

메소드 설명
BrowserForm_KeyDown ( object sender, KeyEventArgs e ) : void

Handle the escape key click

BrowserForm_Load ( object sender, EventArgs e ) : void

The form is loaded - let's navigate to the video

ForceQuit ( ) : void

Close the application

HandleKeyPress ( int keyPressed ) : void

Event sink for key press

OnNewAction ( string action, bool overrideCheck = false ) : void

Handle actions We'll make play/pause a toggle, just so we can ensure we support media buttons properly

RemoteProcessing_OnNewAction ( string action ) : void

Remote processing event handler

SetCurrentScreen ( ) : void

Set the screen which the form is on based on the CurrentScreen property

SetScreenState ( ScreenMode screenMode ) : void

Set the screen state depending on which mode it's in

tmrKeepOnTop_Tick ( object sender, EventArgs e ) : void

Attempt to keep the current application on top

webBrowser_PreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void

Handle the escape key click

메소드 상세

BrowserForm() 공개 메소드

This form is used to play a video - we use separate exe as there is no reliable way to dispose of the web browser between sessions and this seemed to cause issues when playing multiple videos
public BrowserForm ( string connectorType, string videoInfo, string userName, string password ) : System
connectorType string
videoInfo string
userName string
password string
리턴 System

ForceQuitting() 공개 메소드

Method to pass to the connector to see if the form is force closing
public ForceQuitting ( ) : bool
리턴 bool

WndProc() 보호된 메소드

Used to pass messages to remotes. Pre-filter to only messages we're likely to be interested in
protected WndProc ( Message &msg ) : void
msg Message
리턴 void