C# Class BorderlessGaming.BorderlessGaming

Basically the Controller for the app, everything is just tightly coupled
Show file Open project: Codeusa/Borderless-Gaming

Public Properties

Property Type Description
DataPath string

Public Methods

Method Description
BorderlessGaming ( MainWindow window ) : System
RefreshProcesses ( ) : Task
RemoveBorder ( BorderlessGaming.Common.ProcessDetails pd, Favorites favDetails = null, System.Boolean overrideTimeout = false ) : void

remove the menu, resize the window, remove border, and maximize

RemoveBorder_ToSpecificRect ( IntPtr hWnd, Rectangle targetFrame, Favorites favDetails = null, System.Boolean overrideTimeout = false ) : void

remove the menu, resize the window, remove border, and maximize

RemoveBorder_ToSpecificScreen ( IntPtr hWnd, Screen screen, Favorites favDetails = null, System.Boolean overrideTimeout = false ) : void

remove the menu, resize the window, remove border, and maximize

Start ( ) : void

Private Methods

Method Description
BorderlessGaming ( ) : System
DoMainWork ( ) : void

Update the processlist and process the favorites Invoke this method in a task or it will block

HandlePrunedProcess ( BorderlessGaming.Common.ProcessDetails pd ) : void

Handle a removed process

UpdateProcesses ( ) : void

Method Details

BorderlessGaming() public method

public BorderlessGaming ( MainWindow window ) : System
window BorderlessGaming.Forms.MainWindow
return System

RefreshProcesses() public method

public RefreshProcesses ( ) : Task
return Task

RemoveBorder() public method

remove the menu, resize the window, remove border, and maximize
public RemoveBorder ( BorderlessGaming.Common.ProcessDetails pd, Favorites favDetails = null, System.Boolean overrideTimeout = false ) : void
pd BorderlessGaming.Common.ProcessDetails
favDetails Favorites
overrideTimeout System.Boolean
return void

RemoveBorder_ToSpecificRect() public method

remove the menu, resize the window, remove border, and maximize
public RemoveBorder_ToSpecificRect ( IntPtr hWnd, Rectangle targetFrame, Favorites favDetails = null, System.Boolean overrideTimeout = false ) : void
hWnd System.IntPtr
targetFrame System.Drawing.Rectangle
favDetails Favorites
overrideTimeout System.Boolean
return void

RemoveBorder_ToSpecificScreen() public method

remove the menu, resize the window, remove border, and maximize
public RemoveBorder_ToSpecificScreen ( IntPtr hWnd, Screen screen, Favorites favDetails = null, System.Boolean overrideTimeout = false ) : void
hWnd System.IntPtr
screen System.Windows.Forms.Screen
favDetails Favorites
overrideTimeout System.Boolean
return void

Start() public method

public Start ( ) : void
return void

Property Details

DataPath public static property

public static string DataPath
return string