C# Класс SIL.FieldWorks.FwCoreDlgs.FwNewLangProject

Наследование: System.Windows.Forms.Form, IFWDisposable, ICreateLangProject
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
btnOK System.Windows.Forms.Button

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

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

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

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

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

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

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

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

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
Результат void

CheckForValidProjectName() публичный статический Метод

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

CheckProjectDirectory() публичный статический Метод

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

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

Create a new language project showing a progress dialog.
protected CreateNewLangProjWithProgress ( ) : void
Результат void

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

Shows the dialog as a modal dialog
public DisplayDialog ( Form f ) : DialogResult
f System.Windows.Forms.Form
Результат DialogResult

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

Shows the dialog as a modal dialog
public DisplayDialog ( ) : int
Результат int

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

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Constructs a new instance of the FwNewLangProject class.
public FwNewLangProject ( ) : System
Результат System

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

Retrieve the name of the database created for the new language project.
public GetDatabaseFile ( ) : string
Результат string

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

Ignores the close request if needed
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
Результат void

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

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Результат void

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

Draws the etched lines on the dialog.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

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

Set the dialog properties object for dialogs that are created.
public SetDialogProperties ( IHelpTopicProvider helpTopicProvider ) : void
helpTopicProvider IHelpTopicProvider
Результат void

Описание свойств

btnOK защищенное свойство

Protected for testing.
protected Button,System.Windows.Forms btnOK
Результат System.Windows.Forms.Button