コード例 #1
0
        private String[] titleList, descriptionList, genreList; // String array variables to hold information about each movie

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Basic Constructor, to be used with no splash screen
        /// </summary>
        public MovieSelection()
        {
            InitializeComponent();

            this.orderForm = new OrderForm();

            loadXML();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: jean1880/Assignment_3
 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();
 }
コード例 #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;
        }
コード例 #4
0
ファイル: paymentForm.cs プロジェクト: jean1880/Assignment_3
 /// <summary>
 /// This method stores the form that called this order form so that it can be reopened on completion
 /// </summary>
 /// <param name="prevForm">Variable to store the form that called this form</param>
 public void passForm(OrderForm prevForm)
 {
     this.prevForm = prevForm;
 }