Example #1
0
        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;
                }
            }
        }
Example #2
0
 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;
         }
     }
 }