C# Class SIL.FieldWorks.FwCoreDlgs.FwNewLangProject

Inheritance: System.Windows.Forms.Form, IFWDisposable, ICreateLangProject
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Protected Properties

Property Type Description
btnOK System.Windows.Forms.Button

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

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

CheckForValidProjectName() public static method

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
return bool

CheckProjectDirectory() public static method

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
return bool

CreateNewLangProjWithProgress() protected method

Create a new language project showing a progress dialog.
protected CreateNewLangProjWithProgress ( ) : void
return void

DisplayDialog() public method

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

DisplayDialog() public method

Shows the dialog as a modal dialog
public DisplayDialog ( ) : int
return int

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FwNewLangProject() public method

Constructs a new instance of the FwNewLangProject class.
public FwNewLangProject ( ) : System
return System

GetDatabaseFile() public method

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

OnClosing() protected method

Ignores the close request if needed
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnPaint() protected method

Draws the etched lines on the dialog.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

SetDialogProperties() public method

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

Property Details

btnOK protected property

Protected for testing.
protected Button,System.Windows.Forms btnOK
return System.Windows.Forms.Button