Exemple #1
0
        public frmMain()
        {
            try
            {
                // ribbonControl.Tag=new NavBarGroupTagObject(ribbonControl.Name, typeof(RibbonControl), RibbonControlColorScheme.Purple);
                bool flag = CHCNetSDK.NET_DVR_Init();
                if (flag == false)
                {
                    MessageBox.Show("SDK初始化失败");
                }

                InitializeComponent();
                modulesNavigator = new ModulesNavigator(ribbonControl, pcMain);
                // Program.resourceManager.ApplyLanguage(this);
                InitBarItemLinks();
                //Program.permissionManager.ApplyPermission(this);
                string log = Program.infoResource.GetLocalizedString(language.InfoId.OpenApp);
                //   ErrorLog.SystemLog(DateTime.Now, log, bbiUser.Caption);

                bbiLogout2.Visibility = BarItemVisibility.Never;

                hook = new MouseHook();
                hook.OnMouseActivity += Hook_OnMouseActivity;
                hook.Start();

                HelpChmLoad();
            }
            catch (Exception ex)
            {
                //       ErrorLog.Error(ex.StackTrace.ToString());
            }
        }
Exemple #2
0
 public ZoomManager(RibbonControl ribbon, ModulesNavigator modulesNavigator, BarEditItem beItem)
 {
     this.ribbon                = ribbon;
     this.modulesNavigator      = modulesNavigator;
     this.beiZoom               = beItem;
     this.beiZoom.HiddenEditor += new DevExpress.XtraBars.ItemClickEventHandler(this.beiZoom_HiddenEditor);
     this.beiZoom.ShownEditor  += new DevExpress.XtraBars.ItemClickEventHandler(this.beiZoom_ShownEditor);
 }