Exemple #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     splash_screen splashScreen = new splash_screen(); // Create the splashscreen
     OrderForm orderForm = new OrderForm(); // create the order form
     MovieSelection movieSelection = new MovieSelection(splashScreen,orderForm); // create the movie selection screen
     splashScreen.Show();
     Application.Run();
 }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            splash_screen  splashScreen   = new splash_screen();                         // Create the splashscreen
            OrderForm      orderForm      = new OrderForm();                             // create the order form
            MovieSelection movieSelection = new MovieSelection(splashScreen, orderForm); // create the movie selection screen

            splashScreen.Show();
            Application.Run();
        }
Exemple #3
0
        /// <summary>
        /// Main constructor takes the splash screen and next form in construction for preparation of display
        /// </summary>
        /// <param name="splashScreen"></param>
        /// <param name="orderForm"></param>
        public MovieSelection(splash_screen splashScreen, OrderForm orderForm)
        {
            InitializeComponent();

            this.splashScreen = splashScreen; // pass the splashScreen
            this.orderForm    = orderForm;    // Pass the next form to the main form

            loadXML();

            splashTimer.Enabled = true;
        }
        /// <summary>
        /// Main constructor takes the splash screen and next form in construction for preparation of display
        /// </summary>
        /// <param name="splashScreen"></param>
        /// <param name="orderForm"></param>
        public MovieSelection(splash_screen splashScreen, OrderForm orderForm)
        {
            InitializeComponent();

            this.splashScreen = splashScreen; // pass the splashScreen
            this.orderForm = orderForm; // Pass the next form to the main form

            loadXML();

            splashTimer.Enabled = true;
        }