C# Class entity.MetaEditor2.MassFieldChanger

Inheritance: System.Windows.Forms.Form
Show file Open project: troymac1ure/Entity Class Usage Examples

Public Methods

Method Description
MassFieldChanger ( BaseField control, reflexiveData rd ) : System

Creates a clone of the passed memory stream and multiple controls of the passed in control type. Returns DialogResult.None if no changes have been written to the memory stream. Returns DialogResult.Yes if changes have been written to the original memory stream.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
FieldTagType_SelectedIndexChanged ( object sender, EventArgs e ) : void
Field_Leave ( object sender, EventArgs e ) : void
Field_TextChanged ( object sender, EventArgs e ) : void
GenerateFields ( int progressBarStart, int progressBarEnd ) : void

Creates one control of the selected type for each chunk in the reflexive. Idents will have the tag types filled in & tag names will be auto filled when the tag type is selected. String IDs will have the strings list populated here.

InitializeComponent ( ) : void

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

MassFieldChanger_Shown ( object sender, EventArgs e ) : void

Occurs after the form has loaded and is shown for the first time. Used to load the controls and populate the data.

PopulateSelectedChunks ( int progressBarStart, int progressBarEnd ) : void

Reads the data from the memory stream and fills in the visible fields.

PopulateValue ( Control c ) : void

Populates the data for the given control

SaveFieldChange ( Control c ) : void
SortStringIDs ( List &SIDs ) : void

Arranges string IDs by name.

btnFill_Click ( object sender, EventArgs e ) : void

Adjusts visible fields according to initial value and change. Used for incremental offsets.

btnResetValues_Click ( object sender, EventArgs e ) : void

Resets values to last saved values or original if no save has taken place

btnSaveChanges_Click ( object sender, EventArgs e ) : void

Save values to memory stream

cbChunk_SelectedIndexChanged ( object sender, EventArgs e ) : void

Raised when either the start chunk or end chunk number changes.

cbEndChunk_DropDown ( object sender, EventArgs e ) : void

When the start/end chunk combobox is dropped down, stop the control update timer

cbEndChunk_DropDownClosed ( object sender, EventArgs e ) : void

When the start/end chunk combobox dropdown is closed, restart the timer if needed

timer1_Tick ( object sender, EventArgs e ) : void

Occurs 1 second after changing the start or end chunk values. Allows both to be changed before updating the controls so only one update is needed.

Method Details

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

MassFieldChanger() public method

Creates a clone of the passed memory stream and multiple controls of the passed in control type. Returns DialogResult.None if no changes have been written to the memory stream. Returns DialogResult.Yes if changes have been written to the original memory stream.
public MassFieldChanger ( BaseField control, reflexiveData rd ) : System
control BaseField Any child of type BaseField
rd reflexiveData The associated reflexiveData information
return System