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
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

Initialize() public méthode

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
Résultat void

Initialize2() public méthode

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
Résultat void

MoveOrCopyFilesDlg() public méthode

Constructor.
public MoveOrCopyFilesDlg ( ) : System
Résultat System

OnLoad() protected méthode

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.
Résultat void