Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

#if (DEBUG)
            var connectionString = PersistanceManager.GetConnectionStringByName("ServisDBLocal");
#else
            var connectionString = PersistanceManager.GetConnectionStringByName("ServisDB");
#endif
            PersistanceManager.SetConnection(connectionString);


#if (DEBUG)
            Application.Run(new FormGlavna());
#else
            dlgLogin dlg = new dlgLogin();
            if (dlg.ShowDialog() == DialogResult.OK)
            {
                Application.Run(new FormGlavna());
            }
#endif
        }