Beispiel #1
0
        static void Main()
        {
            context = new RentalEntities();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //try
            //{
            //    string sever = Helper.getServerName();
            //}
            //catch (Exception)
            //{
            //    new FormServer().ShowDialog();
            //}

            Application.Run(new Form1());
        }
Beispiel #2
0
 /// <summary>
 /// This method shall be overwritten in children, you need to specify the source
 /// </summary>
 protected virtual void onLoadConfiguration()
 {
     context = Program.context;
 }