Ejemplo n.º 1
0
 public static void ValidateEpubFile(string fileName)
 {   
     // launch the item
     var results = Program.ValidateFile(fileName);
     // display the results
     var dlg = new frmResults();
     dlg.ValidationResults = results;
     dlg.ShowDialog();
 }
Ejemplo n.º 2
0
 private void btnValidate_Click(object sender, EventArgs e)
 {
     // disable the UI and display the "please wait" label
     btnValidate.Enabled = false;
     btnBrowse.Enabled = false;
     txtFilename.Enabled = false;
     lblStatus.Visible = true;
     var myCursor = Cursor.Current;
     Cursor = Cursors.WaitCursor;
     // launch the item
     var results = Program.ValidateFile(txtFilename.Text);
     // display the results
     Cursor = myCursor;
     var dlg = new frmResults();
     dlg.ValidationResults = results;
     dlg.ShowDialog();
     //close out
     Close();
 }