Example #1
0
 public static void Ok(string Title, string Message, bool Autohide = false)
 {
     i = cek();
     Console.Out.WriteLine(i);
     if (i < 4 && i != 0)
     {
         CustomFont.Add("Helve", Properties.Resources.HelveticaNeueLight);
         soc[i] = new PopupNotifier()
         {
             TitleText         = Title,
             ContentText       = Message,
             ContentFont       = CustomFont.GetFont("Helve", 10, FontStyle.Regular),
             TitleFont         = CustomFont.GetFont("Helve", 12, FontStyle.Regular),
             AnimationInterval = 10,
             AutoHide          = Autohide,
             ShowOptionsButton = false,
             ShowGrip          = false,
             ObjectNumber      = i,
             BodyColor         = Color.FromArgb(2, 163, 56),
             HeaderColor       = Color.FromArgb(2, 163, 56),
             Image             = Properties.Resources.ok,
             LastPos           = (i > 0) ? soc[i - 1].LastPos : 0,
             ImageSize         = new Size(40, 40)
         };
         soc[i].Popup();
         initNotif();
     }
     else
     {
         AntriPesan("Ok", Title, Message);
     }
 }
Example #2
0
 public static void Info(string Title, string Message, bool Autohide = false)
 {
     i = cek();
     if (i < 4 && i != 0)
     {
         CustomFont.Add("Helve", Properties.Resources.HelveticaNeueLight);
         soc[i] = new PopupNotifier()
         {
             TitleText         = Title,
             ContentText       = Message,
             AnimationInterval = 10,
             AutoHide          = Autohide,
             ShowOptionsButton = false,
             ShowGrip          = false,
             ObjectNumber      = i,
             BodyColor         = Color.FromArgb(24, 131, 233),
             HeaderColor       = Color.FromArgb(24, 131, 233),
             Image             = Properties.Resources.info,
             LastPos           = (i > 0) ? soc[i - 1].LastPos : 0,
             ImageSize         = new Size(40, 40)
         };
         soc[i].Popup();
         initNotif();
     }
     else
     {
         AntriPesan("Info", Title, Message);
     }
 }