AGS.Editor.FontEditor.btnImportFont_Click C# (CSharp) Метод

btnImportFont_Click() приватный Метод

private btnImportFont_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void btnImportFont_Click(object sender, EventArgs e)
        {
            if (_item != null)
            {
                if (Factory.GUIController.ShowQuestion("Importing a font will replace the current font. Are you sure you want to do this?") == DialogResult.Yes)
                {
                    string fileName = Factory.GUIController.ShowOpenFileDialog("Select font to import...", "All supported fonts (*.ttf; font.*)|*.ttf;font.*|TrueType font files (*.ttf)|*.ttf|SCI font files (FONT.*)|font.*");
                    if (fileName != null)
                    {
                        ImportFont(fileName);
                    }
                }
            }
        }