C# Class SIL.FieldWorks.ParatextLexiconPlugin.DummyFdoUI

Inheritance: IFdoUI
显示文件 Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
CannotRestoreLinkedFilesToOriginalLocation ( ) : YesNoCancel

Cannot restore linked files to original path. Check with user regarding restoring linked files in the project folder or not at all

ChooseFilesToUse ( ) : FileSelection

Check with user regarding which files to use

ConflictingSave ( ) : bool

Check with user regarding conflicting changes

ConnectionLost ( ) : bool

Inform the user of a lost connection

DisplayMessage ( MessageType type, string message, string caption, string helpTopic ) : void

Displays information to the user

DummyFdoUI ( ISynchronizeInvoke synchronizeInvoke ) : System
Exit ( ) : void

Exits the application.

OfferToRestore ( string projectPath, string backupPath ) : bool

Ask user if they wish to restore an XML project from a backup project file.

ReportDuplicateGuids ( string errorText ) : void

Reports duplicate guids to the user

ReportException ( Exception error, bool isLethal ) : void

Show a dialog or output to the error log, as appropriate.

RestoreLinkedFilesInProjectFolder ( ) : bool

Check with user regarding restoring linked files in the project folder or original path

Retry ( string msg, string caption ) : bool

Present a message to the user and allow the options to Retry or Cancel

Method Details

CannotRestoreLinkedFilesToOriginalLocation() public method

Cannot restore linked files to original path. Check with user regarding restoring linked files in the project folder or not at all
public CannotRestoreLinkedFilesToOriginalLocation ( ) : YesNoCancel
return YesNoCancel

ChooseFilesToUse() public method

Check with user regarding which files to use
public ChooseFilesToUse ( ) : FileSelection
return FileSelection

ConflictingSave() public method

Check with user regarding conflicting changes
public ConflictingSave ( ) : bool
return bool

ConnectionLost() public method

Inform the user of a lost connection
public ConnectionLost ( ) : bool
return bool

DisplayMessage() public method

Displays information to the user
public DisplayMessage ( MessageType type, string message, string caption, string helpTopic ) : void
type MessageType
message string
caption string
helpTopic string
return void

DummyFdoUI() public method

public DummyFdoUI ( ISynchronizeInvoke synchronizeInvoke ) : System
synchronizeInvoke ISynchronizeInvoke
return System

Exit() public method

Exits the application.
public Exit ( ) : void
return void

OfferToRestore() public method

Ask user if they wish to restore an XML project from a backup project file.
public OfferToRestore ( string projectPath, string backupPath ) : bool
projectPath string The project path.
backupPath string The backup path.
return bool

ReportDuplicateGuids() public method

Reports duplicate guids to the user
public ReportDuplicateGuids ( string errorText ) : void
errorText string The error text.
return void

ReportException() public method

Show a dialog or output to the error log, as appropriate.
public ReportException ( Exception error, bool isLethal ) : void
error System.Exception the exception you want to report
isLethal bool set to true if the error is lethal, otherwise /// false.
return void

RestoreLinkedFilesInProjectFolder() public method

Check with user regarding restoring linked files in the project folder or original path
public RestoreLinkedFilesInProjectFolder ( ) : bool
return bool

Retry() public method

Present a message to the user and allow the options to Retry or Cancel
public Retry ( string msg, string caption ) : bool
msg string The message.
caption string The caption.
return bool