/// <summary> /// Click event handler of the buttonAddFont control. /// </summary> /// <param name="sender">The source object of this event.</param> /// <param name="layer">The selected layer.</param> private void buttonAddFont_Click(object sender, EventArgs e) { AddFontForm form = new AddFontForm(); if (form.ShowDialog(this) == DialogResult.OK) { ListViewItem item = new ListViewItem(form.FontName); item.SubItems.Add(form.FontFile); listViewFonts.Items.Add(item); SetFontsetModified(true); } }