C# 클래스 Nexus.Client.ApplicationInitializationForm

The view displaying the progress of the application initialization.
This view may actually be invisible, and simple act as the UI form that displays the views the application initialization requests shown.
상속: Nexus.Client.UI.ManagedFontForm
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConfirmItemOverwrite OverwriteResult
ConfirmMakeWritable bool
GenerateGreyscale Image
HandleChangedProperty void
InitializeComponent void
ShowMessage object
ShowView object
Task_PropertyChanged void
Task_TaskEnded void
ViewModel_TaskStarted void
m_tmrGlow_Tick void

공개 메소드들

메소드 설명
ApplicationInitializationForm ( ApplicationInitializer p_iniApplicationInitializer ) : System

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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

Login ( Nexus.Client.LoginFormVM p_vmlViewModel ) : bool

Logins the user into the current mod repository.

OnClosing ( CancelEventArgs e ) : void

Raises the Form.Closing event.

This prevents the form from closing until the task has completed.

OnShown ( EventArgs e ) : void

Raises the Form.Shown event.

This immediately closes the form if the task has already completed.

비공개 메소드들

메소드 설명
ConfirmItemOverwrite ( string p_strItemMessage, bool p_booAllowPerGroupChoice, bool p_booAllowPerModChoice ) : OverwriteResult

This asks the user to confirm the overwriting of the specified item.

ConfirmMakeWritable ( IEnvironmentInfo p_eifEnvironmentInfo, string p_strFileSystemItemPath, bool &p_booRememberSelection ) : bool

Confirms whether a file system item should be made writable.

GenerateGreyscale ( Image p_imgImage ) : Image

Generates a greyscale image from the given image.

HandleChangedProperty ( string p_strPropertyName ) : void

Updates the form to display the changed property.

InitializeComponent ( ) : void

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

ShowMessage ( ViewMessage p_vwmMessage ) : object

Displays a message.

ShowView ( IView p_ivwView, bool p_booModal ) : object

Displays a view.

Task_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the task.

This updates the progress bars and messages.

Task_TaskEnded ( object sender, TaskEndedEventArgs e ) : void

Handles the IBackgroundTask.TaskEnded event of the task.

This sets the Form.DialogResult, dependant upon whether or not the task was cancelled.

ViewModel_TaskStarted ( object sender, EventArgs e ) : void

Handles the ApplicationInitializer.TaskStarted event of the view model.

This display a progress window for the started task.

m_tmrGlow_Tick ( object sender, EventArgs e ) : void

Handles the System.Windows.Forms.Timer.Tick event of the glow effect timer.

This updates the progress image, and renders the moving glow effect.

메소드 상세

ApplicationInitializationForm() 공개 메소드

A simple constructor that initializes the object with the given values.
public ApplicationInitializationForm ( ApplicationInitializer p_iniApplicationInitializer ) : System
p_iniApplicationInitializer ApplicationInitializer The application initializer.
리턴 System

Dispose() 보호된 메소드

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

Login() 보호된 메소드

Logins the user into the current mod repository.
protected Login ( Nexus.Client.LoginFormVM p_vmlViewModel ) : bool
p_vmlViewModel Nexus.Client.LoginFormVM The view model that provides the data and operations for this view.
리턴 bool

OnClosing() 보호된 메소드

Raises the Form.Closing event.
This prevents the form from closing until the task has completed.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs A describing the event arguments.
리턴 void

OnShown() 보호된 메소드

Raises the Form.Shown event.
This immediately closes the form if the task has already completed.
protected OnShown ( EventArgs e ) : void
e System.EventArgs An describing the event arguments.
리턴 void