Esempio n. 1
0
        public static void showWindowPinCorto()
        {
            Window window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.window_pin_corto));

            GHI.Glide.UI.Button btnTryAgain = (GHI.Glide.UI.Button)window.GetChildByName("tryagain");

            btnTryAgain.TapEvent += btnTryAgain_TapEvent;
            GlideTouch.Initialize();
            Glide.MainWindow = window;
            Glide.MainWindow.Invalidate();
        }
Esempio n. 2
0
        public static void showWindowNotRegistered()
        {
            Window window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.window_not_regitered));

            GHI.Glide.UI.Button btnBack = (GHI.Glide.UI.Button)window.GetChildByName("back");

            btnBack.TapEvent += btnRetryerrorpin_TapEvent;
            GlideTouch.Initialize();
            Glide.MainWindow = window;
            Glide.MainWindow.Invalidate();
        }
Esempio n. 3
0
        public static void showWindowCameraDown()
        {
            if (!Program.NetworkUp)
            {
                showWindowNetworkDown();
                return;
            }
            Window window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.window_camera_down));

            GHI.Glide.UI.Button camButton = (GHI.Glide.UI.Button)window.GetChildByName("retry");

            camButton.TapEvent += camButton_TapEvent;

            Glide.MainWindow = window;
            Glide.MainWindow.Invalidate();
        }
Esempio n. 4
0
        public static void showWindowErrorPin()
        {
            if (!Program.NetworkUp)
            {
                showWindowNetworkDown();
                return;
            }
            Window window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.window_error_pin));

            GHI.Glide.UI.Button btnRetryerrorpin = (GHI.Glide.UI.Button)window.GetChildByName("retry");

            btnRetryerrorpin.TapEvent += btnRetryerrorpin_TapEvent;
            GlideTouch.Initialize();
            Glide.MainWindow = window;
            Glide.MainWindow.Invalidate();
        }
Esempio n. 5
0
        public static void showWindowServerDown()
        {
            if (!Program.NetworkUp)
            {
                showWindowNetworkDown();
                return;
            }
            Window window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.window_server_down));

            GHI.Glide.UI.Button btnRestart = (GHI.Glide.UI.Button)window.GetChildByName("restart");

            btnRestart.TapEvent += btnRestart_TapEvent;
            GlideTouch.Initialize();
            Glide.MainWindow = window;
            Glide.MainWindow.Invalidate();
        }
Esempio n. 6
0
        public static void setupWindowInsertPin()
        {
            Window window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.window));

            GlideTouch.Initialize();

            GHI.Glide.UI.Button btn1 = (GHI.Glide.UI.Button)window.GetChildByName("button1");
            GHI.Glide.UI.Button btn2 = (GHI.Glide.UI.Button)window.GetChildByName("button2");
            GHI.Glide.UI.Button btn3 = (GHI.Glide.UI.Button)window.GetChildByName("button3");
            GHI.Glide.UI.Button btn4 = (GHI.Glide.UI.Button)window.GetChildByName("button4");
            GHI.Glide.UI.Button btn5 = (GHI.Glide.UI.Button)window.GetChildByName("button5");
            GHI.Glide.UI.Button btn6 = (GHI.Glide.UI.Button)window.GetChildByName("button6");
            GHI.Glide.UI.Button btn7 = (GHI.Glide.UI.Button)window.GetChildByName("button7");
            GHI.Glide.UI.Button btn8 = (GHI.Glide.UI.Button)window.GetChildByName("button8");
            btn1.TapEvent += btn1_TapEvent;

            Glide.MainWindow = window;
        }
Esempio n. 7
0
        public static void showWindowInsertPin()
        {
            if (!Program.NetworkUp && !Program.setupComplete)
            {
                showWindowNetworkDown();
                return;
            }

            Window window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.window_pin));

            GlideTouch.Initialize();

            GHI.Glide.UI.Button btn1   = (GHI.Glide.UI.Button)window.GetChildByName("button1");
            GHI.Glide.UI.Button btn2   = (GHI.Glide.UI.Button)window.GetChildByName("button2");
            GHI.Glide.UI.Button btn3   = (GHI.Glide.UI.Button)window.GetChildByName("button3");
            GHI.Glide.UI.Button btn4   = (GHI.Glide.UI.Button)window.GetChildByName("button4");
            GHI.Glide.UI.Button btn5   = (GHI.Glide.UI.Button)window.GetChildByName("button5");
            GHI.Glide.UI.Button btn6   = (GHI.Glide.UI.Button)window.GetChildByName("button6");
            GHI.Glide.UI.Button btn7   = (GHI.Glide.UI.Button)window.GetChildByName("button7");
            GHI.Glide.UI.Button btn8   = (GHI.Glide.UI.Button)window.GetChildByName("button8");
            GHI.Glide.UI.Button btn9   = (GHI.Glide.UI.Button)window.GetChildByName("button9");
            GHI.Glide.UI.Button btn0   = (GHI.Glide.UI.Button)window.GetChildByName("button0");
            GHI.Glide.UI.Button btnOk  = (GHI.Glide.UI.Button)window.GetChildByName("button_ok");
            GHI.Glide.UI.Button btnDel = (GHI.Glide.UI.Button)window.GetChildByName("button_del");
            password         = (GHI.Glide.UI.PasswordBox)window.GetChildByName("textpassword");
            password.Enabled = true;

            btn1.TapEvent   += btn1_TapEvent;
            btn2.TapEvent   += btn2_TapEvent;
            btn3.TapEvent   += btn3_TapEvent;
            btn4.TapEvent   += btn4_TapEvent;
            btn5.TapEvent   += btn5_TapEvent;
            btn6.TapEvent   += btn6_TapEvent;
            btn7.TapEvent   += btn7_TapEvent;
            btn8.TapEvent   += btn8_TapEvent;
            btn9.TapEvent   += btn9_TapEvent;
            btn0.TapEvent   += btn0_TapEvent;
            btnDel.TapEvent += btnDel_TapEvent;
            btnOk.TapEvent  += btnOk_TapEvent;

            Glide.MainWindow = window;
            Glide.MainWindow.Invalidate();
        }