示例#1
0
        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;
                }
            }
        }
示例#2
0
        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;
                }
            }
        }