public static string ItemStatusText(ItemSpecStatus statusValue) { switch (statusValue) { case ItemSpecStatus.Enable: return "ио╪э"; case ItemSpecStatus.Disable: return "об╪э"; } return ""; }
public static string ItemStatusText(ItemSpecStatus statusValue) { switch (statusValue) { case ItemSpecStatus.Enable: return("ио╪э"); case ItemSpecStatus.Disable: return("об╪э"); } return(""); }
public string StatusText(object obj) { ItemSpecStatus status = Cast.Enum <ItemSpecStatus>(obj); switch (status) { case ItemSpecStatus.Enable: return("有效"); case ItemSpecStatus.Disable: return("停用"); } return(""); }