public static string GetIconId(SmartTagSeverity severity) { switch (severity) { case SmartTagSeverity.Fixes: return("md-lightbulb"); case SmartTagSeverity.ErrorFixes: return("md-lightbulb-error"); default: return("md-lightbulb-screwdriver"); } }
public static Xwt.Drawing.Image GetIcon(SmartTagSeverity severity) { switch (severity) { case SmartTagSeverity.Fixes: return(ImageService.GetIcon("md-lightbulb", Gtk.IconSize.Menu)); case SmartTagSeverity.ErrorFixes: return(ImageService.GetIcon("md-lightbulb-error", Gtk.IconSize.Menu)); default: return(ImageService.GetIcon("md-lightbulb-screwdriver", Gtk.IconSize.Menu)); } }
public static Xwt.Drawing.Image GetIcon(SmartTagSeverity severity) { return(ImageService.GetIcon(GetIconId(severity), Gtk.IconSize.Menu)); }