C# Class SIL.FieldWorks.FwCoreDlgs.MoveOrCopyFilesDlg

This dialog is used whenever LangProject.LinkedFilesRootDir is changed, to find out what the user wants to do with the files that exist in the old location, and whenever a file from outside LangProject.LinkedFilesRootDir is linked from this project to find out whether the user wants to move or copy into LangProject.LinkedFilesRootDir or to leave the file where it is.
Inheritance: System.Windows.Forms.Form, IFWDisposable
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
CheckDisposed ( ) : void

Check whether this dialog has already been disposed. If so, throw a fit.

Initialize ( int cFiles, string sOldDir, string sNewDir, IHelpTopicProvider helpTopicProvider ) : void

Initialize the header and message before showing the dialog used whenever LangProject.LinkedFilesRootDir is changed to find out what the user wants to do with the files that exist in the old location.

Initialize2 ( string sRootDir, IHelpTopicProvider helpTopicProvider, bool isLocal ) : void

Initialize the header and message before showing the dialog used whenever a file from outside LangProject.LinkedFilesRootDir is linked from this project to find out whether the user wants to move or copy into LangProject.LinkedFilesRootDir or to leave the file where it is.

MoveOrCopyFilesDlg ( ) : System

Constructor.

Protected Methods

Method Description
OnLoad ( EventArgs e ) : void

Fix so that 120DPI fonts don't push the buttons to the bottom of the dialog. (See comment added to LT-8968.)

Private Methods

Method Description
SetupHelp ( IHelpTopicProvider helpTopicProvider, string sHelpTopic ) : void

Sets up the help topic provider and topic.

ShortenMyDocsPath ( string sDir ) : string

If the given folder path is in the "My Documents" folder, trim the "My Documents" portion off the path.

REVIEW (Hasso) 2015.08: this might be better in the controller

m_btnCopy_Click ( object sender, EventArgs e ) : void

Handles the Click event of the m_btnCopy control.

m_btnHelp_Click ( object sender, EventArgs e ) : void

Handles the Click event of the m_btnHelp control.

m_btnLeave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the m_btnLeave control.

m_btnMove_Click ( object sender, EventArgs e ) : void

Handles the Click event of the m_btnMove control.

Method Details

CheckDisposed() public method

Check whether this dialog has already been disposed. If so, throw a fit.
public CheckDisposed ( ) : void
return void

Initialize() public method

Initialize the header and message before showing the dialog used whenever LangProject.LinkedFilesRootDir is changed to find out what the user wants to do with the files that exist in the old location.
public Initialize ( int cFiles, string sOldDir, string sNewDir, IHelpTopicProvider helpTopicProvider ) : void
cFiles int
sOldDir string
sNewDir string
helpTopicProvider IHelpTopicProvider
return void

Initialize2() public method

Initialize the header and message before showing the dialog used whenever a file from outside LangProject.LinkedFilesRootDir is linked from this project to find out whether the user wants to move or copy into LangProject.LinkedFilesRootDir or to leave the file where it is.
public Initialize2 ( string sRootDir, IHelpTopicProvider helpTopicProvider, bool isLocal ) : void
sRootDir string
helpTopicProvider IHelpTopicProvider
isLocal bool
return void

MoveOrCopyFilesDlg() public method

Constructor.
public MoveOrCopyFilesDlg ( ) : System
return System

OnLoad() protected method

Fix so that 120DPI fonts don't push the buttons to the bottom of the dialog. (See comment added to LT-8968.)
protected OnLoad ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void