static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); PaymentWindow window = new PaymentWindow(); WindowViewLoader viewLoader = new WindowViewLoader(); viewLoader.LoadPaymentView(); Application.Run(viewLoader.LastLoaderView); }