/// <summary> /// Gets the used size of the disk in a user friendly format. /// </summary> /// <param name="disk"></param> /// <returns></returns> public static string FriendlyUsedSize(this IHardwareDisk disk) { return(disk?.Used?.ToStringDataSize() ?? ""); }
/// <summary> /// Gets the free size of the disk in a user friendly format. /// </summary> /// <param name="disk"></param> /// <returns></returns> public static string FriendlyFreeSize(this IHardwareDisk disk) { return(disk?.Free?.ToStringDataSize() ?? ""); }
private bool Equals(IHardwareDisk other) { return(Drive == other.Drive && Free == other.Free && Used == other.Used && Total == other.Total); }