public void Add(PageSize size) { _set.Add(size); }
public LayoutSet GetLayouts(PageSize pageSize, int resolution) { var q = _set.Where(layout => layout.PageSizeEquals(pageSize, resolution)); return new LayoutSet() {_set = new List<Layout>(q)}; }
void AppendPageSizeEntry(PageSize size) { _size.AppendText(String.Format("{0,1:f1} x {1,1:f1} inches", size.Width, size.Height)); }
public bool PageSizeEquals(PageSize pageSize, int resolution) { return GetPageSize(resolution).CompareTo(pageSize) == 0; }
void AppendPageSizeEntry(PageSize size) { _size.AppendText(String.Format("{0,1:f1} x {1,1:f1} inches", size.Width, size.Height)); }
public bool PageSizeEquals(PageSize pageSize, int resolution) => GetPageSize(resolution).CompareTo(pageSize) == 0;
public void Add(PageSize size) { _set.Add(size); }