public void Reset(ResolutionChecker.ScreenSize size) { this.Size = size; this.AspectRatio = 0 != this.Size.Height ? this.Size.Width / (float)this.Size.Height : 0; this.IsLandscape = 1 < this.AspectRatio; }
public void Sync(ResolutionChecker.ScreenInfo rhs) { this.Size = rhs.Size; this.AspectRatio = rhs.AspectRatio; this.IsLandscape = rhs.IsLandscape; }