//-[MenuStrip Items]------------------------------------------------------------------------------------------------ /// <summary>Creates a new Font</summary> private void NewToolStripMenuItem_Click(object sender, EventArgs e) { var PreBuilt = NewFontForm.CreateNewFont(); if (PreBuilt != null) { FontBeingBuilt = PreBuilt; NameBox.Text = FontBeingBuilt["Name"]; AuthorBox.Text = FontBeingBuilt["Author"]; MainTableLayout.Enabled = true; } }
public static Dictionary <string, string> CreateNewFont() { Dictionary <string, string> NewFont = null; NewFontForm NFF = new NewFontForm(); if (NFF.ShowDialog() == DialogResult.OK) { NewFont = new Dictionary <string, string> { { "Name", NFF.NameBox.Text }, { "Author", NFF.AuthorBox.Text }, { "CharWidth", NFF.WidthBox.Text }, { "CharHeight", NFF.HeightBox.Text } }; } return(NewFont); }