static void Main() { if (!Properties.Settings.Default.Set) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new SetSqlConnection()); } else { con = new SqlConnection(Properties.Settings.Default.Bibliothèque); cmd = new SqlCommand("", con); ds = new BibliothèqueDataSet(); lesSanctionesTA = new LesSanctionnesTableAdapter(); emprunteurTA = new EmprunteurTableAdapter(); typeEmpTA = new TypeEmprunteurTableAdapter(); filierTA = new FilierTableAdapter(); emprunteurSanctioneTA = new Emprunteur_SanctionneTableAdapter(); docsTA = new OuvrageTableAdapter(); auter = new AuteurTableAdapter(); domain = new DomaineTableAdapter(); sousdomain = new SousDomaineTableAdapter(); typeDoc = new TypesOuvrageTableAdapter(); em = new EmprunterTableAdapter(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Program.loadData(); Application.Run(new Bienvenu()); Application.ApplicationExit += new EventHandler(Application_ApplicationExit); } }
static void Main() { if (!Properties.Settings.Default.Set) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new SetSqlConnection()); } else { con = new SqlConnection(Properties.Settings.Default.BibliothèqueConnectionString); cmd = new SqlCommand("", con); ds = new BibliothèqueDataSet(); docsTA = new OuvrageTableAdapter(); auter = new AuteurTableAdapter(); domain = new DomaineTableAdapter(); sousdomain = new SousDomaineTableAdapter(); typeDoc = new TypesOuvrageTableAdapter(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Program.loadData(); Application.Run(new LesDocuments()); } }