예제 #1
0
 public void ResizeSearchRsltCtrl()
 {
     if (this.flpSearchRslt.Controls.Count > 0)
     {
         foreach (Control ctrl in this.flpSearchRslt.Controls)
         {
             if (ctrl.GetType().Equals(typeof(BookControl)))
             {
                 BookControl bc = ctrl as BookControl;
                 bc.Width = this.flpSearchRslt.Width - 25;
             }
         }
     }
 }
예제 #2
0
        private void CreateSearchRsltCtrl(BookSearchRslt aBsr)
        {
            if (aBsr != null)
            {
                this.SetSearchRsltInfo(aBsr.start, aBsr.display, aBsr.total);

                foreach (BookItem itm in aBsr.items)
                {
                    BookControl bc = new BookControl();

                    bc.Width = this.flpSearchRslt.Width - 25;
                    bc.SetValue(itm);

                    this.flpSearchRslt.Controls.Add(bc);
                }
            }
        }