static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SelectDataBaseForm dbForm = new SelectDataBaseForm(); if (dbForm.ShowDialog() != DialogResult.OK) { return; } string ChoosedDBName = dbForm.ChoosedDBName; Application.Run(new DataRecordsQureyForm(ChoosedDBName)); }