AutoWikiBrowser.MainForm.statusBar_MouseHover C# (CSharp) Method

statusBar_MouseHover() private method

private statusBar_MouseHover ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void statusBar_MouseHover(object sender, EventArgs e)
        {
            AWBToolTip tt = new AWBToolTip();

            ToolStripStatusLabel item = (sender as ToolStripStatusLabel);

            string text = "";

            switch (item.Name)
            {
            case "lblUserName":
                text = "Click to switch user";
                break;
            case "lblProject":
                text = "Click to switch project";
                break;
            case "lblUserNotifications":
                text = "User notifications";
                break;
            }

            tt.Show(text, item.Owner);
        }
        
MainForm