Ejemplo n.º 1
0
        public Deskband()
        {
            Options.MinHorizontalSize = new Size(110, 30);
            Options.ContextMenuItems  = ContextMenuItems;
            InitDependencies();

            _mainControl = _container.GetInstance <UserControl1>();
            _frmStats    = _container.GetInstance <frmStats>();

            _mainControl.MouseEnter       += showPopup;
            _mainControl.MouseLeave       += hidePopup;
            _mainControl.label1.MouseMove += moveMouse;
        }
Ejemplo n.º 2
0
        private void InitDependencies()
        {
            try
            {
                _mainControl = new UserControl1();
                _frmStats    = new frmStats();
                _container   = new Container();
                _container.RegisterInstance(Options);
                _container.RegisterInstance(TaskbarInfo);

                _container.Verify();
            } catch (Exception)
            {
                throw;
            }
        }