C# 클래스 Nexus.Client.UI.Controls.GameModeSearchListViewItem

A list view item that displays a game mode whose install path is being searched for.
상속: GameModeListViewItemBase
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

공개 메소드들

메소드 설명
GameModeSearchListViewItem ( IGameModeDescriptor p_gmdGameModeInfo, GameDiscoverer p_gdtDetector ) : System

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

StopSearching ( ) : void

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

DisplayFinalUI() 보호된 메소드

Changes the UI to indicate that an installation path for the game mode has been selected.
protected DisplayFinalUI ( ) : void
리턴 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

GameModeSearchListViewItem() 공개 메소드

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.
리턴 System

StopSearching() 공개 메소드

public StopSearching ( ) : void
리턴 void