private void SqlFormatter_Notification(string title, string message, ToolTipIcon toolTipIcon) { if (string.IsNullOrWhiteSpace(title)) { title = toolTipIcon.ToString(); } trayIcon.ShowBalloonTip(trayIconBalloonTimeout, title, message, toolTipIcon); }
public static void ShowTooltip(this Control control, string message, ToolTipIcon icon) { toolTip?.Dispose(); toolTip = new ToolTip { ToolTipTitle = icon.ToString(), ToolTipIcon = icon }; var pos = control.PointToClient(Cursor.Position); pos.X += 20; pos.Y += 10; toolTip.Show(message, control, pos, 5000); }
public void Notify(string message, string title, ToolTipIcon type) { Console.WriteLine("{0}\r\n\tMessage: {1}\r\n\t{2}", type.ToString(), title, message); }
public override string ToString() => $"({(Icon == 0 ? "" : Icon.ToString())}) Ttl={Fmt(Title)}, Msg={Fmt(Message)}";
void WriteLog(string message, ToolTipIcon icon) { this.LogTextBox.AppendText(string.Format("{0} : {1}{2}", icon.ToString(), message, Environment.NewLine)); }