Пример #1
0
 private void initialize()
 {
     this.mediaFilesLabels = new List<LinkLabel>();
     int y = 0;
     foreach (MediaFile mf in this.mediaFiles)
     {
         LinkLabel ll = new MediaFileLinkLabel(mf, this.dialogParent);
         ll.Text = mf.getTitle();
         ll.Width = this.Width - 2 * MARGIN;
         ll.Location = new Point(MARGIN, y);
         this.mediaFilesLabels.Add(ll);
         this.Controls.Add(ll);
         y += ll.Height;
     }
     this.Height = y;
 }
Пример #2
0
        private void initialize()
        {
            this.mediaFilesLabels = new List <LinkLabel>();
            int y = 0;

            foreach (MediaFile mf in this.mediaFiles)
            {
                LinkLabel ll = new MediaFileLinkLabel(mf, this.dialogParent);
                ll.Text     = mf.getTitle();
                ll.Width    = this.Width - 2 * MARGIN;
                ll.Location = new Point(MARGIN, y);
                this.mediaFilesLabels.Add(ll);
                this.Controls.Add(ll);
                y += ll.Height;
            }
            this.Height = y;
        }