Пример #1
0
 public void CheckDBFile(String filename)
 {
     if (!File.Exists(filename))
     {
         NoDBDialog dlg      = new NoDBDialog();
         int        response = dlg.Run();
         if (response == (int)ResponseType.Yes)
         {
             ShowOpenDBDialog();
         }
         else if (response == (int)ResponseType.No)
         {
             CreateDB();
         }
         else
         {
             End();
         }
         CheckDBFile(AppConfig.DBFile);
     }
 }
Пример #2
0
 public void CheckDBFile(String filename)
 {
     if (!File.Exists(filename))
     {
         NoDBDialog dlg = new NoDBDialog();
         int response = dlg.Run();
         if (response == (int) ResponseType.Yes)
          	ShowOpenDBDialog();
         else if (response == (int) ResponseType.No)
             CreateDB();
         else
             End();
         CheckDBFile(AppConfig.DBFile);
     }
 }