public TestWizSigCapt()
 {
     InitializeComponent();
     // initialise Wizard script support
     Callback = new WizardCallback();    // Callback provided via InteropAXFlWizCOM
     Callback.EventHandler = null;
     WizCtl.SetEventHandler(Callback);
     ScriptIsRunning = false;
 }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();
            SigCtl = new SigCtl();
            WizCtl = new Florentis.WizCtl();

            WizCtl.Licence = "<<license>>";
            // initialise Wizard script support
            Callback = new WizardCallback();    // Callback provided via InteropAXFlWizCOM
            Callback.EventHandler = null;
            WizCtl.SetEventHandler(Callback);
            ScriptIsRunning = false;
        }
Пример #3
0
        public WizCap(string user_name, string alipay_login_id)
        {
            this.Opacity = 0;
            InitializeComponent();

            Callback = new WizardCallback();
            Callback.EventHandler = null;
            WizCtl.SetEventHandler(Callback);

            confirmYn       = "";
            ScriptIsRunning = false;

            if (!ScriptIsRunning)
            {
                bool success = WizCtl.PadConnect();
                if (success)
                {
                    ScriptIsRunning = true;

                    WizCtl.Reset();
                    WizCtl.Licence = "AgAkAEy2cKydAQVXYWNvbQ1TaWduYXR1cmUgU0RLAgKBAgJkAACIAwEDZQA";

                    WizCtl.AddObject(ObjectType.ObjectText, "txt", "left", 11, "Confirm Personal Information", null);

                    // insert checkbox
                    WizCtl.Font = new Font("Verdana", 10, FontStyle.Regular);
                    WizCtl.AddObject(ObjectType.ObjectText, "txt", 10, 60, " User Name : " + user_name + "\n User Login ID : " + alipay_login_id + "\n", null);

                    WizCtl.Font = new Font("Verdana", 10, FontStyle.Bold);
                    WizCtl.AddObject(ObjectType.ObjectCheckbox, "Check", "centre", 120, "My information is correct", 2);

                    // insert the buttons
                    WizCtl.Font = new Font("Verdana", 10, FontStyle.Regular);
                    WizCtl.AddObject(ObjectType.ObjectButton, "Cancel", "left", "bottom", "Cancel", 110);
                    WizCtl.AddObject(ObjectType.ObjectButton, "OK", "right", "bottom", "OK", 110);

                    // set callback when a button is pressed
                    WizCtl.Display();
                    Callback.EventHandler = new WizardCallback.Handler(Step1_Handler);
                    WizCtl.SetEventHandler(Callback);
                }
                else
                {
                    MessageBox.Show(this, "not connect", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
            else
            {
                MessageBox.Show(this, "Script is already running", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }