Esempio n. 1
0
 protected override void OnShown(EventArgs e)
 {
     base.OnShown(e);
     if (CurrentFont.Chars.Count == 0)
     {
         return;
     }
     charSelectUpDown.Maximum = CurrentFont.Chars.Count - 1;
     charSelectUpDown_ValueChanged(null, new EventArgs());
     Master.ImportedFont    = CurrentFont.MakeMfeFont(CodePageTable.CopyFromFont(new Font()));
     destCharPreviewer.Char = ImportedFont[(int)destSelectUpDown.Value];
     Master.Chart.RefreshData();
 }
Esempio n. 2
0
 private void defaultCpButton_Click(object sender, EventArgs e)
 {
     try
     {
         // Ugly kludge, but whatever
         Master.ImportedFont    = CurrentFont.MakeMfeFont(CodePageTable.CopyFromFont(new Font()));
         destCharPreviewer.Char = ImportedFont[(int)destSelectUpDown.Value];
         Master.Chart.RefreshData();
     }
     catch (Exception f)
     {
         MessageBox.Show("Error: " + f.ToString(), "Error Loading Codepage File", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 3
0
 private void codepageExportButton_Click(object sender, EventArgs e)
 {
     try
     {
         if (exportCodePageFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             CodePageTable.CopyFromFont(CurrentFont).WriteToFile(exportCodePageFileDialog.FileName);
             Master.RefreshStuff();
         }
     }
     catch (Exception x)
     {
         MessageBox.Show("Error in export: " + x.ToString(), "Error in Export", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }