/// <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)); }
public virtual Notification Configure(NotificationConfig config) { this.currentConfig = config; return(this); }
public static Notification Show(NotificationConfig config) { return(new Notification().Configure(config).Show()); }
public virtual Notification Configure(NotificationConfig config) { this.currentConfig = config; return this; }
public static Notification Show(NotificationConfig config) { return new Notification().Configure(config).Show(); }
public Notification Notify(NotificationConfig config) { return new Notification().Configure(config); }