public TableRowActionViewModel(string title, string icon, Color color, string urlStringFormat, List <string> rawParameters, TableRowActionMethod method = TableRowActionMethod.Get) { Title = title; Icon = icon; Color = color; UrlStringFormat = urlStringFormat; RawParameters = rawParameters; Method = method; }
public TableRowActionViewModel( string title, string icon, Color color, string urlStringFormat, List <string> rawParameters, TableRowActionMethod method = TableRowActionMethod.Get, bool isToBeOpenedInNewTab = false) { this.Title = title; this.Icon = icon; this.Color = color; this.UrlStringFormat = urlStringFormat; this.RawParameters = rawParameters; this.Method = method; this.IsToBeOpenedInNewTab = isToBeOpenedInNewTab; }
/// <summary> /// /// </summary> /// <param name="icon">https://materialdesignicons.com/cdn/2.0.46/</param> /// <param name="color"></param> /// <param name="urlStringFormat"></param> /// <param name="parameters"></param> public static TableRowActionViewModel CreateAction(string title, string icon, Color color, TableRowActionMethod method, string urlStringFormat, params object[] parameters) { return(new TableRowActionViewModel(title, icon, color, urlStringFormat, parameters.Select(x => x.ToString()).ToList(), method)); }
public TableRowActionViewModel(string title, string icon, Color color, string urlStringFormat, List <string> rawParameters, TableRowActionMethod method = TableRowActionMethod.Get) { this.Title = title; this.Icon = icon; this.Color = color; this.UrlStringFormat = urlStringFormat; this.RawParameters = rawParameters; this.Method = method; }