public BootBox Type(BootBoxType type) { if (!Attributes.ContainsKey("message")) { Message("Message"); } if (!Attributes.ContainsKey("callback")) { Callback("function(result) { }"); } this.type = type; SetScript(); return(this); }
public static BootBox BootBox(this HtmlHelper helper, string title, BootBoxType type) { return(new BootBox(helper).Title(title).Type(type)); }
public static BootBox BootBox(string title, BootBoxType type) { return(new BootBox().Title(title).Type(type)); }
public static BootBox BootBox(this IHtmlHelper helper, string message, BootBoxType type) { return(new BootBox(helper).Title("پیام").Message(message).Type(type)); }
public static BootBox BootBox(string message, BootBoxType type) { return(new BootBox().Title("پیام").Message(message).Type(type)); }