Esempio n. 1
0
        public Controller(Window_StartMenu admin_in)
        {
            startMenu     = admin_in;
            kiosk         = new Window_Kiosk(this);
            registerKiosk = new Window_RegisterKiosk(this);
            noCode        = new Window_NoCode(this);

            api_url          = "http://www.timjunger.com/";
            webAPI           = null;
            activeRegistrant = null;

            currentView = WindowView.START_MENU;

            //Hide and disable all windows at program start
            startMenu.Visibility     = System.Windows.Visibility.Hidden;
            startMenu.IsEnabled      = false;
            kiosk.Visibility         = System.Windows.Visibility.Hidden;
            kiosk.IsEnabled          = false;
            registerKiosk.Visibility = System.Windows.Visibility.Hidden;
            registerKiosk.IsEnabled  = false;
            noCode.Visibility        = System.Windows.Visibility.Hidden;
            noCode.IsEnabled         = false;

            //Display initial window (admin)
            SetView(WindowView.START_MENU);
        }
Esempio n. 2
0
        public Controller(Window_StartMenu admin_in)
        {
            startMenu = admin_in;
            kiosk = new Window_Kiosk(this);
            registerKiosk = new Window_RegisterKiosk(this);
            noCode = new Window_NoCode(this);

            api_url = "http://www.timjunger.com/";
            webAPI = null;
            activeRegistrant = null;

            currentView = WindowView.START_MENU;

            //Hide and disable all windows at program start
            startMenu.Visibility = System.Windows.Visibility.Hidden;
            startMenu.IsEnabled = false;
            kiosk.Visibility = System.Windows.Visibility.Hidden;
            kiosk.IsEnabled = false;
            registerKiosk.Visibility = System.Windows.Visibility.Hidden;
            registerKiosk.IsEnabled = false;
            noCode.Visibility = System.Windows.Visibility.Hidden;
            noCode.IsEnabled = false;

            //Display initial window (admin)
            SetView(WindowView.START_MENU);
        }