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()); }
/// <summary> /// This method shall be overwritten in children, you need to specify the source /// </summary> protected virtual void onLoadConfiguration() { context = Program.context; }