예제 #1
0
 /// <summary>
 /// 浮动提示框
 /// </summary>
 /// <param name="info">提示信息</param>
 /// <param name="type">类型ERROR,其他</param>
 public static void NotifiShow(string info, string type)
 {
     NotificationConfig config = new NotificationConfig();
     config.HideDelay = 2000;
     config.BodyStyle = "padding:5px;color:green;text-align:left;";
     config.Html = info;
     config.Icon = Icon.Information;
     if (type == "ERROR")
     {
         config.Title = "失败";
     }
     else
         config.Title = "成功";
     Notification.Show(config);
 }
 public Notification Notify(NotificationConfig config)
 {
     return(new Notification().Configure(config));
 }
예제 #3
0
        public virtual Notification Configure(NotificationConfig config)
        {
            this.currentConfig = config;

            return(this);
        }
예제 #4
0
 public static Notification Show(NotificationConfig config)
 {
     return(new Notification().Configure(config).Show());
 }
예제 #5
0
        public virtual Notification Configure(NotificationConfig config)
        {
            this.currentConfig = config;

            return this;
        }
예제 #6
0
 public static Notification Show(NotificationConfig config)
 {
     return new Notification().Configure(config).Show();
 }
예제 #7
0
 public Notification Notify(NotificationConfig config)
 {
     return new Notification().Configure(config);
 }