예제 #1
0
파일: PoiBrowser.cs 프로젝트: mitice/foo
        private void displayMainDetails()
        {
            List <MainDetail> mainDetails = this.currentPoi.getMainDetails();

            if (mainDetails.Count > 0)
            {
                Label ll = new Label();
                ll.Text     = "Main details:";
                ll.Location = new Point(LEFT_MARGIN, this.freeY);
                //ll.TabIndex = 1;
                this.currentMainDetailsLinks.Add(ll);
                this.tabPreview.Controls.Add(ll);
                this.freeY += ll.Height;
                foreach (MainDetail md in mainDetails)
                {
                    ll          = new MainDetailLinkLabel(md, this);
                    ll.Text     = md.getTitle();
                    ll.Width    = this.textBoxPoiDescr.Width;
                    ll.Location = new Point(LEFT_MARGIN, this.freeY);
                    //ll.TabIndex = 1;
                    this.currentMainDetailsLinks.Add(ll);
                    this.tabPreview.Controls.Add(ll);
                    this.freeY += ll.Height;
                }
            }
        }
예제 #2
0
파일: PoiBrowser.cs 프로젝트: misiek/foo
 private void displayMainDetails()
 {
     List<MainDetail> mainDetails = this.currentPoi.getMainDetails();
     if (mainDetails.Count > 0)
     {
         Label ll = new Label();
         ll.Text = "Main details:";
         ll.Location = new Point(LEFT_MARGIN, this.freeY);
         //ll.TabIndex = 1;
         this.currentMainDetailsLinks.Add(ll);
         this.tabPreview.Controls.Add(ll);
         this.freeY += ll.Height;
         foreach (MainDetail md in mainDetails)
         {
             ll = new MainDetailLinkLabel(md, this);
             ll.Text = md.getTitle();
             ll.Width = this.textBoxPoiDescr.Width;
             ll.Location = new Point(LEFT_MARGIN, this.freeY);
             //ll.TabIndex = 1;
             this.currentMainDetailsLinks.Add(ll);
             this.tabPreview.Controls.Add(ll);
             this.freeY += ll.Height;
         }
     }
 }