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); } }
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); } }