private statusBar_MouseHover ( object sender, EventArgs e ) : void | ||
sender | object | |
e | EventArgs | |
Результат | 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);
}