/// <summary> /// Displays an animated notification on the bottom of the form /// you can choose how much time the notif will last (in seconds) /// </summary> /// <param name="message"></param> /// <param name="stickDurationSecs"></param> public void Notify(string message, int stickDurationSecs) { if (_bottomNotif == null) { _bottomNotif = new YamuiNotifLabel { Font = FontManager.GetFont(FontFunction.Normal), Text = "", Size = new Size(Width - 21, 16), Location = new Point(1, Height - 17), Anchor = AnchorStyles.Bottom | AnchorStyles.Left }; Controls.Add(_bottomNotif); } _bottomNotif.Duration = stickDurationSecs; _bottomNotif.AnimText = message; }
/// <summary> /// Displays an animated notification on the bottom of the form /// you can choose how much time the notif will last (in seconds) /// </summary> /// <param name="message"></param> /// <param name="stickDurationSecs"></param> public void Notify(string message, int stickDurationSecs) { if (_bottomNotif == null) { _bottomNotif = new YamuiNotifLabel { Font = FontManager.GetFont(FontFunction.Normal), Text = "", Size = new Size(Width - 21, 16), Location = new Point(1, Height - 17), Anchor = AnchorStyles.Bottom | AnchorStyles.Left, }; Controls.Add(_bottomNotif); } _bottomNotif.Duration = stickDurationSecs; _bottomNotif.AnimText = message; }