C# Class SIL.FieldWorks.FwCoreDlgs.FwNewLangProject

Inheritance: System.Windows.Forms.Form, IFWDisposable, ICreateLangProject
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Свойство Type Description
btnOK System.Windows.Forms.Button

Méthodes publiques

Méthode Description
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

CheckForValidProjectName ( TextBox tb ) : bool

Check whether the given TextBox contains a valid project name. If not, remove the invalid character and complain to the user.

CheckProjectDirectory ( Form f, IHelpTopicProvider helpTopicProvider ) : bool

Check that the projects directory can be found and is not compressed or encrypted. If it is not found, offer to let the user choose a new one. Return true if we end up with a valid data directory.

DisplayDialog ( Form f ) : DialogResult

Shows the dialog as a modal dialog

DisplayDialog ( ) : int

Shows the dialog as a modal dialog

FwNewLangProject ( ) : System

Constructs a new instance of the FwNewLangProject class.

GetDatabaseFile ( ) : string

Retrieve the name of the database created for the new language project.

SetDialogProperties ( IHelpTopicProvider helpTopicProvider ) : void

Set the dialog properties object for dialogs that are created.

Méthodes protégées

Méthode Description
CreateNewLangProjWithProgress ( ) : void

Create a new language project showing a progress dialog.

Dispose ( bool disposing ) : void
OnClosing ( CancelEventArgs e ) : void

Ignores the close request if needed

OnLoad ( EventArgs e ) : void

OnPaint ( PaintEventArgs e ) : void

Draws the etched lines on the dialog.

Private Methods

Méthode Description
DisplayNewWritingSystemProperties ( ComboBox comboWS, string defaultName ) : IWritingSystem[]

FixLabelFont ( Label lbl ) : void

Fix the label font for Linux/Mono. Without this fix, the label may still show boxes for Chinese characters when the rest of the UI is properly showing Chinese characters.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

RemoveWs ( HashSet wss, object target ) : void
UpdateLanguageCombos ( ) : void

btnHelp_Click ( object sender, EventArgs e ) : void

Show the New Language Project Dialog help topic

btnOK_Click ( object sender, EventArgs e ) : void

Handle the OK button: Validate input and create new project

m_btnNewAnalWrtSys_Click ( object sender, EventArgs e ) : void

m_btnNewVernWrtSys_Click ( object sender, EventArgs e ) : void

m_txtName_TextChanged ( object sender, EventArgs e ) : void

Method Details

CheckDisposed() public méthode

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Résultat void

CheckForValidProjectName() public static méthode

Check whether the given TextBox contains a valid project name. If not, remove the invalid character and complain to the user.
public static CheckForValidProjectName ( TextBox tb ) : bool
tb System.Windows.Forms.TextBox
Résultat bool

CheckProjectDirectory() public static méthode

Check that the projects directory can be found and is not compressed or encrypted. If it is not found, offer to let the user choose a new one. Return true if we end up with a valid data directory.
public static CheckProjectDirectory ( Form f, IHelpTopicProvider helpTopicProvider ) : bool
f System.Windows.Forms.Form
helpTopicProvider IHelpTopicProvider
Résultat bool

CreateNewLangProjWithProgress() protected méthode

Create a new language project showing a progress dialog.
protected CreateNewLangProjWithProgress ( ) : void
Résultat void

DisplayDialog() public méthode

Shows the dialog as a modal dialog
public DisplayDialog ( Form f ) : DialogResult
f System.Windows.Forms.Form
Résultat DialogResult

DisplayDialog() public méthode

Shows the dialog as a modal dialog
public DisplayDialog ( ) : int
Résultat int

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

FwNewLangProject() public méthode

Constructs a new instance of the FwNewLangProject class.
public FwNewLangProject ( ) : System
Résultat System

GetDatabaseFile() public méthode

Retrieve the name of the database created for the new language project.
public GetDatabaseFile ( ) : string
Résultat string

OnClosing() protected méthode

Ignores the close request if needed
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
Résultat void

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnPaint() protected méthode

Draws the etched lines on the dialog.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

SetDialogProperties() public méthode

Set the dialog properties object for dialogs that are created.
public SetDialogProperties ( IHelpTopicProvider helpTopicProvider ) : void
helpTopicProvider IHelpTopicProvider
Résultat void

Property Details

btnOK protected_oe property

Protected for testing.
protected Button,System.Windows.Forms btnOK
Résultat System.Windows.Forms.Button