C# Class MPTagThat.TagToFileName.TagToFileName

Inheritance: System.Windows.Forms.UserControl
Show file Open project: MediaPortal/MPTagThat Class Usage Examples

Public Methods

Method Description
TagToFileName ( Main main ) : System
TagToFileName ( Main main, bool batchMode ) : System

Protected Methods

Method Description
ProcessCmdKey ( Message &msg, Keys keyData ) : bool

A Key has been pressed

Private Methods

Method Description
FillPreview ( ) : void

Fill the Preview Grid with the selected rows

InitForm ( bool batchMode ) : void

The form is used in Batch Mode, when using the default button on the ribbon

LoadSettings ( ) : void
LocaliseScreen ( ) : void

Localise the Screen

ReplaceParametersWithValues ( string parameter ) : string

Replace the parameter with the REAL values of the file

Tag2FileName ( string parameter ) : void

Convert File Name to Tag

Tag2FileNamePreview ( string parameters ) : void

Loop through all the selected rows and set the Preview

btAddFormat_Click ( object sender, EventArgs e ) : void

Adds the current Format to the list

btApply_Click ( object sender, EventArgs e ) : void

Apply the changes to the selected files.

btCancel_Click ( object sender, EventArgs e ) : void

Handle the Cancel button. Close Form without applying any changes

btRemoveFormat_Click ( object sender, EventArgs e ) : void

Removes the current selected format from the list

btReview_Click ( object sender, EventArgs e ) : void

Toggle the Review window display

cbFormat_Keypress ( object sender, KeyPressEventArgs e ) : void

Don't allow invalid characters to be entered into the Format Field

cbFormat_TextChanged ( object sender, EventArgs e ) : void

Text in the Combo is been changed, Update the Preview Value

lblParm_Click ( object sender, EventArgs e ) : void

User clicked on a parameter label. Update combo box with value.

tabControl1_SelectedTabPageChanged ( object sender, Elegant e ) : void

Tabpage select event to invoke Preview

Method Details

ProcessCmdKey() protected method

A Key has been pressed
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
return bool

TagToFileName() public method

public TagToFileName ( Main main ) : System
main Main
return System

TagToFileName() public method

public TagToFileName ( Main main, bool batchMode ) : System
main Main
batchMode bool
return System