Example #1
0
 public BloodGroupForm()
 {
     try
     {
         db = new IdentitySearchEntities();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Please, check again after some minutes!! ");
         File.AppendAllText(pathTxt, "\n" + ex + ":" + DateTime.Now);
     }
     InitializeComponent();
 }
Example #2
0
 public SearchForm()
 {
     try
     {
         db = new IdentitySearchEntities();
         Directory.CreateDirectory(folderForEroor);
     }
     catch (Exception ex)
     {
         MessageBox.Show("Please, check again after some minutes!! ");
         File.AppendAllText(pathTxt, "\n" + ex + ":" + DateTime.Now);
     }
     InitializeComponent();
 }