Esempio n. 1
0
        private void RefreshCameraList()
        {
            Enabled = false;
            foreach (KeyValuePair <uint, DialogHolder> dialog in m_activeDialogs)
            {
                dialog.Value.camCtlMF.HideWindow();
            }

            try
            {
                m_busMgr.RescanBus();
                Thread.Sleep(1000);
            }
            catch (FC2Exception ex)
            {
                BasePage.ShowErrorMessageDialog("Error rescanning bus.", ex);
                Enabled = true;
                return;
            }
            this.Activate();
        }