private void statusBar_MouseHover(object sender, EventArgs e) { AWBToolTip tt = new AWBToolTip(); System.Windows.Forms.ToolStripStatusLabel item = (sender as System.Windows.Forms.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); }
private void editToolBar_MouseHover(object sender, EventArgs e) { AWBToolTip tt = new AWBToolTip(); ToolStripButton item = (sender as ToolStripButton); string text = ""; switch (item.Name) { case "btntsDelete": text = "Delete this page"; break; case "btntsIgnore": text = "Skip this page without saving and continue on the next"; break; case "btntsSave": text = "Save your changes and continue"; break; case "btntsChanges": text = "Preview your changes; please use this before saving."; break; case "btntsPreview": text = "Preview your changes"; break; case "btntsStop": text = "Stops everything"; break; case "btntsStart": text = "Start processing pages"; break; case "btntsShowHideParameters": text = "Make the edit box span bottom of window"; break; case "btntsShowHide": text = "Show or hide the panel"; break; case "btntsFalsePositive": text = "Add to false positives file"; break; } tt.Show(text, item.Owner); }