public static string GetDeviceName(FWDevice device) { switch (device) { case FWDevice.Desktop: return("md"); case FWDevice.Tablet: return("sm"); case FWDevice.Phone: return("xs"); case FWDevice.LargeDesktop: return("lg"); } throw new ArgumentException("Invalid device"); }
public static string GetCss(FWColSize size, FWDevice device) { return($"col-{GetDeviceName(device)}-{(int)size}"); }
public FWControlSize(FWColSize size, FWDevice device) { Size = size; Device = device; }