public override void ShowDialog(object sender, EventArgs e) { FontDlg dlg = new FontDlg(FontFamily.Families); if (dlg.ShowDialog() == DialogResult.OK) { string path = dlg.DestPath; FontFamily[] fonts = dlg.SelectedFonts(); ProgressDlg pd = new ProgressDlg(DevStringTable.Instance["GUI:Converting"]); pd.MinVal = 0; pd.Value = 0; pd.MaxVal = fonts.Length; pd.Show(); for (int i = 0; i < fonts.Length; i++) { string dest = Path.Combine(path, Path.GetFileNameWithoutExtension(fonts[i].Name) + ".fnt"); currentFont = fonts[i]; Convert(null, new DevFileLocation(dest)); pd.Value = i; } pd.Close(); pd.Dispose(); } }
public override void ShowDialog(object sender, EventArgs e) { FontDlg dlg = new FontDlg(FontFamily.Families); if (dlg.ShowDialog() == DialogResult.OK) { string path = dlg.DestPath; FontFamily[] fonts = dlg.SelectedFonts(); ProgressDlg pd = new ProgressDlg(DevStringTable.Instance["GUI:Converting"]); pd.MinVal = 0; pd.Value = 0; pd.MaxVal = fonts.Length; pd.Show(); for (int i = 0; i < fonts.Length; i++) { string dest = Path.Combine(path, Path.GetFileNameWithoutExtension(fonts[i].Name) + ".fnt"); currentFont = fonts[i]; Convert(null, new DevFileLocation(dest)); pd.Value = i; } pd.Close(); pd.Dispose(); } }