Exemplo n.º 1
0
        protected override void OnMouseLeave(EventArgs e)
        {
            base.OnMouseLeave(e);

            DefaultStatusBarService defaultStatusBarService = (DefaultStatusBarService)ServiceManager.Services.GetService(typeof(DefaultStatusBarService));

            defaultStatusBarService.SetMessage("¾ÍÐ÷");
        }
Exemplo n.º 2
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            base.OnMouseMove(e);
            int currentTabIndex = -1;

            for (int i = 0; i < _tabPages.Count; i++)
            {
                Rectangle rect = (Rectangle)_tabRects[i];
                if (rect.Contains(e.X, e.Y))
                {
                    currentTabIndex = i;
                    break;
                }
            }
            DefaultStatusBarService defaultStatusBarService = (DefaultStatusBarService)ServiceManager.Services.GetService(typeof(DefaultStatusBarService));
            string message = "¾ÍÐ÷";

            if (currentTabIndex != -1)
            {
                message = ((MyTabPage)TabPages[currentTabIndex]).ViewContent.ContentName;
            }
            defaultStatusBarService.SetMessage(message);
        }