private void InitSunVoteDll()
        {
            try
            {
                this.baseConn = new BaseConnection();
                this.signIn = new SignIn();
                this.number = new Number();
                this.choices = new Choices();

                signIn.BaseConnection = baseConn;
                number.BaseConnection = baseConn;
                choices.BaseConnection = baseConn;

                this.baseConn.BaseOnLine += new IBaseConnectionEvents_BaseOnLineEventHandler(this.baseConn_BaseOnLine);

                this.signIn.KeyStatus += new ISignInEvents_KeyStatusEventHandler(this.signIn_KeyStatus);
                this.number.KeyStatus += new INumberEvents_KeyStatusEventHandler(this.number_KeyStatus);
                this.choices.KeyStatus += new IChoicesEvents_KeyStatusEventHandler(this.choices_KeyStatus);
            }
            catch (System.Runtime.InteropServices.COMException ex)
            {
                MessageBox.Show(ex.Message);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        private void InitSunVoteComponents()
        {
            if (Globals.ThisAddIn.Session.HardwareConfiguration.SimulateMode)
                return;

            this.choices = new Choices();

            this.choices.KeyStatus += new IChoicesEvents_KeyStatusEventHandler(choices_KeyStatus);

            InitChoices();
        }