예제 #1
0
        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");
        }
예제 #2
0
 public static string GetCss(FWColSize size, FWDevice device)
 {
     return($"col-{GetDeviceName(device)}-{(int)size}");
 }
예제 #3
0
 public FWControlSize(FWColSize size, FWDevice device)
 {
     Size   = size;
     Device = device;
 }