C# Класс 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.
Наследование: System.Windows.Forms.Form, IFWDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.)

Приватные методы

Метод Описание
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.

Описание методов

CheckDisposed() публичный Метод

Check whether this dialog has already been disposed. If so, throw a fit.
public CheckDisposed ( ) : void
Результат void

Initialize() публичный Метод

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
Результат void

Initialize2() публичный Метод

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
Результат void

MoveOrCopyFilesDlg() публичный Метод

Constructor.
public MoveOrCopyFilesDlg ( ) : System
Результат System

OnLoad() защищенный Метод

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.
Результат void