示例#1
0
 private void BdfImporter_Shown(object sender, EventArgs e)
 {
     if (openFileDialog.ShowDialog() != System.Windows.Forms.DialogResult.OK)
     {
         this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
         this.Close();
         return;
     }
     try
     {
         BdfFont = new BdfFont(openFileDialog.FileName);
     }
     catch (Exception f)
     {
         this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
         Close();
         MessageBox.Show("Error: " + f.ToString(), "Error Importing Font", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     Browser.Show();
 }
示例#2
0
文件: BdfImporter.cs 项目: drdnar/MFE
 private void BdfImporter_Shown(object sender, EventArgs e)
 {
     if (openFileDialog.ShowDialog() != System.Windows.Forms.DialogResult.OK)
     {
         this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
         this.Close();
         return;
     }
     try
     {
         BdfFont = new BdfFont(openFileDialog.FileName);
     }
     catch (Exception f)
     {
         this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
         Close();
         MessageBox.Show("Error: " + f.ToString(), "Error Importing Font", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
     Browser.Show();
 }