C# Class Nexus.Client.UI.Controls.GameModeSearchListViewItem

A list view item that displays a game mode whose install path is being searched for.
Inheritance: GameModeListViewItemBase
Exibir arquivo Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
GameModeSearchListViewItem ( IGameModeDescriptor p_gmdGameModeInfo, GameDiscoverer p_gdtDetector ) : System

A simple constructor that initializes the object with the given dependencies.

StopSearching ( ) : void

Protected Methods

Method Description
DisplayFinalUI ( ) : void

Changes the UI to indicate that an installation path for the game mode has been selected.

Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
Detector_PathFound ( object sender, GameModeDiscoveredEventArgs e ) : void

Handles the GameDiscoverer.PathFound event of the game discoverer.

This displays the path that was found.

Detector_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the game discoverer.

This updates the search progress display.

Detector_TaskEnded ( object sender, TaskEndedEventArgs e ) : void

Handles the IBackgroundTask.TaskEnded event of the game discoverer.

If the game being searched for has not been found, this displays the not found UI.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

SetVisiblePanel ( Panel p_pnlPanel ) : void

Sets the panel that should be displayed in the item.

butAccept_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the accept button.

This marks the found path as being accepted as the installation path for the game mode.

butCancel_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the reject button.

This indicate thes found path is incorrect, and another path should be found.

butOverride_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the override button.

This marks the entered path as the path to use as the installation path for the game mode, override any found paths.

butReject_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the reject button.

This indicate thes found path is incorrect, and another path should be found.

butSelectPath_Click ( object sender, EventArgs e ) : void

Handles the Control.Click event of the select path button.

This opens the folder selection dialog, so an override path can be selected.

tbxInstallPath_TextChanged ( object sender, EventArgs e ) : void

Handles the Control.TextChanged event of the install path text box.

This verifies that the entered path contains the game being looked for, dislpaying an error if required.

Method Details

DisplayFinalUI() protected method

Changes the UI to indicate that an installation path for the game mode has been selected.
protected DisplayFinalUI ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GameModeSearchListViewItem() public method

A simple constructor that initializes the object with the given dependencies.
public GameModeSearchListViewItem ( IGameModeDescriptor p_gmdGameModeInfo, GameDiscoverer p_gdtDetector ) : System
p_gmdGameModeInfo IGameModeDescriptor The descriptor for the game modewhose install path is to be found.
p_gdtDetector Nexus.Client.Games.GameDiscoverer The discoverer to use to find the game installation path.
return System

StopSearching() public method

public StopSearching ( ) : void
return void