Exemplo n.º 1
0
 private void displayMediaFiles()
 {
     List<MediaFile> mediaFiles = this.detail.getMediaFiles();
     if (mediaFiles.Count > 0)
     {
         Label ll = new Label();
         ll.Text = "Media files:";
         ll.Location = new Point(MARGIN, this.y);
         this.content.Controls.Add(ll);
         this.y += ll.Height;
         this.mediaFilesPanel = new MediaFilesListPanel(mediaFiles, this.poiBrowser);
         this.mediaFilesPanel.Width = this.Width - MARGIN - MARGIN_RIGHT;
         this.mediaFilesPanel.Location = new Point(MARGIN, this.y);
         this.content.Controls.Add(this.mediaFilesPanel);
         this.y += this.mediaFilesPanel.Height;
     }
 }
Exemplo n.º 2
0
        private void displayMediaFiles()
        {
            List <MediaFile> mediaFiles = this.currentPoi.getMediaFiles();

            if (mediaFiles.Count > 0)
            {
                Label ll = new Label();
                ll.Text     = "Media files:";
                ll.Location = new Point(LEFT_MARGIN, this.freeY);
                this.tabPreview.Controls.Add(ll);
                this.freeY                   += ll.Height;
                this.mediaFilesPanel          = new MediaFilesListPanel(mediaFiles, this);
                this.mediaFilesPanel.Width    = this.textBoxPoiDescr.Width;
                this.mediaFilesPanel.Location = new Point(LEFT_MARGIN, this.freeY);
                this.tabPreview.Controls.Add(this.mediaFilesPanel);
                this.freeY += this.mediaFilesPanel.Height;
            }
        }
Exemplo n.º 3
0
        private void displayMediaFiles()
        {
            List <MediaFile> mediaFiles = this.detail.getMediaFiles();

            if (mediaFiles.Count > 0)
            {
                Label ll = new Label();
                ll.Text     = "Media files:";
                ll.Location = new Point(MARGIN, this.y);
                this.content.Controls.Add(ll);
                this.y += ll.Height;
                this.mediaFilesPanel          = new MediaFilesListPanel(mediaFiles, this.poiBrowser);
                this.mediaFilesPanel.Width    = this.Width - MARGIN - MARGIN_RIGHT;
                this.mediaFilesPanel.Location = new Point(MARGIN, this.y);
                this.content.Controls.Add(this.mediaFilesPanel);
                this.y += this.mediaFilesPanel.Height;
            }
        }
Exemplo n.º 4
0
 private void cleanPreview()
 {
     // clean media files list panel
     if (this.mediaFilesPanel != null)
     {
         this.tabPreview.Controls.Remove(this.mediaFilesPanel);
     }
     this.mediaFilesPanel = null;
     // clean current main details links list
     foreach (Label ll in this.currentMainDetailsLinks)
     {
         this.tabPreview.Controls.Remove(ll);
     }
     this.currentMainDetailsLinks = new List <Label>();
     // free current poi media
     if (this.currentPoi != null)
     {
         this.currentPoi.freeMedia();
     }
 }
Exemplo n.º 5
0
 private void displayMediaFiles()
 {
     List<MediaFile> mediaFiles = this.currentPoi.getMediaFiles();
     if (mediaFiles.Count > 0)
     {
         Label ll = new Label();
         ll.Text = "Media files:";
         ll.Location = new Point(LEFT_MARGIN, this.freeY);
         this.tabPreview.Controls.Add(ll);
         this.freeY += ll.Height;
         this.mediaFilesPanel = new MediaFilesListPanel(mediaFiles, this);
         this.mediaFilesPanel.Width = this.textBoxPoiDescr.Width;
         this.mediaFilesPanel.Location = new Point(LEFT_MARGIN, this.freeY);
         this.tabPreview.Controls.Add(this.mediaFilesPanel);
         this.freeY += this.mediaFilesPanel.Height;
     }
 }
Exemplo n.º 6
0
 private void cleanPreview()
 {
     // clean media files list panel
     if (this.mediaFilesPanel != null)
         this.tabPreview.Controls.Remove(this.mediaFilesPanel);
     this.mediaFilesPanel = null;
     // clean current main details links list
     foreach (Label ll in this.currentMainDetailsLinks)
     {
         this.tabPreview.Controls.Remove(ll);
     }
     this.currentMainDetailsLinks = new List<Label>();
     // free current poi media
     if (this.currentPoi != null)
         this.currentPoi.freeMedia();
 }