C# Class Nexus.Client.ModAuthoring.UI.ModPackagingForm

Mostrar archivo Open project: NexusMods/NexusModManager-4.5

Private Properties

Property Type Description
ConfirmSaveCurrentProject bool?
InitializeComponent void
Project_PropertyChanged void
ToolStripButton_Click void
ViewModel_ModPackingStarted void
ViewModel_ProjectValidated void
ViewModel_PropertyChanged void
verticalTabControl1_SelectedTabPageChanged void

Public Methods

Method Description
ModPackagingForm ( ModPackagingFormVM p_vmlModPackagingVM ) : System

The default constructor.

Protected Methods

Method Description
BindProject ( Project p_prjProject ) : void

Binds the Project to the control.

Dispose ( bool disposing ) : void

Clean up any resources being used.

GetIgnoreWarnings ( ) : bool

Determines if the validation warnings should be ignored.

GetNewModSavePath ( ) : string

Gets the path where the new mod should be saved.

GetOpenPath ( ) : string

Gets the path of the project to open.

GetProjectSavePath ( ) : string

Gets the path where the project should be saved.

SetWindowTitle ( Project p_prjProject ) : void

Sets the window's title to reflect project name and dirty status.

Private Methods

Method Description
ConfirmSaveCurrentProject ( ) : bool?

Gets whether the current Project should be saved.

InitializeComponent ( ) : void

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

Project_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the Project being edited.

This method alters the form display to indicate whether the Project is dirty.

ToolStripButton_Click ( object sender, EventArgs e ) : void

Handles the ToolStripItem.Click event of the build button.

This makes sure all control values have been committed, so that they can be validated.

ViewModel_ModPackingStarted ( object sender, EventArgs e ) : void

Handles the ModPackagingFormVM.ModPackingStarted event of the view model.

This displays the progress dialog.

ViewModel_ProjectValidated ( object sender, EventArgs e ) : void

Handles the ModPackagingFormVM.ProjectValidated event of the view model.

This displays warning and error icons.

ViewModel_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the view model.

verticalTabControl1_SelectedTabPageChanged ( object sender, VerticalTabControl e ) : void

Handles the VerticalTabControl.SelectedTabPageChanged event of the navigation tab control.

This makes sure each page has the information it requires from the other pages.

Method Details

BindProject() protected method

Binds the Project to the control.
protected BindProject ( Project p_prjProject ) : void
p_prjProject Project The to bind to the control.
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

GetIgnoreWarnings() protected method

Determines if the validation warnings should be ignored.
protected GetIgnoreWarnings ( ) : bool
return bool

GetNewModSavePath() protected method

Gets the path where the new mod should be saved.
protected GetNewModSavePath ( ) : string
return string

GetOpenPath() protected method

Gets the path of the project to open.
protected GetOpenPath ( ) : string
return string

GetProjectSavePath() protected method

Gets the path where the project should be saved.
protected GetProjectSavePath ( ) : string
return string

ModPackagingForm() public method

The default constructor.
public ModPackagingForm ( ModPackagingFormVM p_vmlModPackagingVM ) : System
p_vmlModPackagingVM ModPackagingFormVM
return System

SetWindowTitle() protected method

Sets the window's title to reflect project name and dirty status.
protected SetWindowTitle ( Project p_prjProject ) : void
p_prjProject Project The being edited.
return void