void RetrieveVotesForm_Shown(object sender, EventArgs e)
        {
            if (!Globals.ThisAddIn.Session.HardwareConfiguration.SimulateMode)
            {
                //baseConn.Open(1, Globals.ThisAddIn.Session.HardwareConfiguration.BaseId.ToString());
                var connectingDialog = new Connecting();
                var result = connectingDialog.ShowDialog();
                if (result != System.Windows.Forms.DialogResult.OK)
                    return;
                InitSunVoteComponents();
                //Cursor.Hide();
            }
            var slideId = Globals.ThisAddIn.Application.SlideShowWindows[1].View.Slide.SlideID;

            var qConf = Globals.ThisAddIn.Session.GetQuestionSlideConfiguration(slideId);

            _currentAnimatedTimer = null;
            _frameAnimation = 0;
            qConf.ChangeUnCheckButonToCheck();

            EnabledTimer();
        }
예제 #2
0
        private void InitPPTRemote()
        {
            if (!Globals.ThisAddIn.Session.HardwareConfiguration.SimulateMode)
            {
                if (Globals.ThisAddIn.Session.HardwareConfiguration.ActivatePPTRemote)
                {
                    //baseConn.Open(1, Globals.ThisAddIn.Session.HardwareConfiguration.BaseId.ToString());
                    var connectingDialog = new Connecting();
                    var result = connectingDialog.ShowDialog();
                    if (result != System.Windows.Forms.DialogResult.OK)
                        return;

                    request = new Request();
                    request.BaseConnection = ConnectionManager.GetConection();
                    request.Enabled = true;
                    request.ChairControl += new IRequestEvents_ChairControlEventHandler(request_ChairControl);
                }
            }
        }