Exemplo n.º 1
0
        private void SqlFormatter_Notification(string title, string message, ToolTipIcon toolTipIcon)
        {
            if (string.IsNullOrWhiteSpace(title))
            {
                title = toolTipIcon.ToString();
            }

            trayIcon.ShowBalloonTip(trayIconBalloonTimeout, title, message, toolTipIcon);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public void Notify(string message, string title, ToolTipIcon type)
 {
     Console.WriteLine("{0}\r\n\tMessage: {1}\r\n\t{2}", type.ToString(), title, message);
 }
Exemplo n.º 4
0
 public void Notify(string message, string title, ToolTipIcon type)
 {
     Console.WriteLine("{0}\r\n\tMessage: {1}\r\n\t{2}", type.ToString(), title, message);
 }
Exemplo n.º 5
0
 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));
 }