Пример #1
0
 public void Add(PageSize size)
 {
     _set.Add(size);
 }
Пример #2
0
 public LayoutSet GetLayouts(PageSize pageSize, int resolution)
 {
   var q = _set.Where(layout => layout.PageSizeEquals(pageSize, resolution));
   return new LayoutSet() {_set = new List<Layout>(q)};
 }
Пример #3
0
 void AppendPageSizeEntry(PageSize size)
 {
     _size.AppendText(String.Format("{0,1:f1} x {1,1:f1} inches",
                                    size.Width, size.Height));
 }
Пример #4
0
 public bool PageSizeEquals(PageSize pageSize, int resolution)
 {
     return GetPageSize(resolution).CompareTo(pageSize) == 0;
 }
Пример #5
0
 void AppendPageSizeEntry(PageSize size)
 {
     _size.AppendText(String.Format("{0,1:f1} x {1,1:f1} inches",
              size.Width, size.Height));
 }
Пример #6
0
 public bool PageSizeEquals(PageSize pageSize, int resolution) =>
 GetPageSize(resolution).CompareTo(pageSize) == 0;
Пример #7
0
 public void Add(PageSize size)
 {
     _set.Add(size);
 }