Ejemplo 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();
 }
Ejemplo 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);
     }
 }
Ejemplo n.º 3
0
 private void loadCpButton_Click(object sender, EventArgs e)
 {
     if (loadCodepageDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         try
         {
             ImportedFont = CurrentFont.MakeMfeFont(
                 CodePageTable.FromFile(loadCodepageDialog.FileName)
                 );
             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);
         }
     }
 }