C# Class OnlineVideos.Sites.WebAutomation.BrowserHost.BrowserForm

Afficher le fichier Open project: offbyoneBB/mp-onlinevideos2

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
WndProc ( Message &msg ) : void

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

Private Methods

Méthode Description
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

Method Details

BrowserForm() public méthode

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
Résultat System

ForceQuitting() public méthode

Method to pass to the connector to see if the form is force closing
public ForceQuitting ( ) : bool
Résultat bool

WndProc() protected méthode

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
Résultat void