private void buttonFontsettings_Click(object sender, EventArgs e) { using (OpenFileDialog dlg = new OpenFileDialog()) { dlg.Title = "Impor .fontsettings file"; dlg.Filter = FormPrincipal.GetFontsettingsExtensionString(); if (dlg.ShowDialog() == DialogResult.OK) { textBoxFontsettings.Text = dlg.FileName; } } }
private void buttonImage_Click(object sender, EventArgs e) { using (OpenFileDialog dlg = new OpenFileDialog()) { dlg.Title = "Import image file"; dlg.Filter = FormPrincipal.GetImageExtensionString(); if (dlg.ShowDialog() == DialogResult.OK) { textBoxImage.Text = dlg.FileName; } } }