Esempio n. 1
0
        private void Skip(int selectedIndex)
        {
            toolStripContainer.ContentPanel.Controls.Clear();
            Download download;

            if (Core.DownloadsAndQueue.TryGetValue(((RandomTag <string>)m_DataGridView.Rows[selectedIndex].Tag).Tag, out download))
            {
                if (m_InformationControl != null)
                {
                    m_InformationControl.Dispose();
                }
                m_InformationControl      = new DownloadInformationControl(download);
                m_InformationControl.Dock = DockStyle.Fill;
                if (m_SourcesControl != null)
                {
                    m_SourcesControl.Dispose();
                }
                m_SourcesControl      = new DownloadSourcesControl(download);
                m_SourcesControl.Dock = DockStyle.Fill;
                switch (Settings.Instance["DownloadInformationDialogLastTab"])
                {
                case "1":
                    sourcesToolStripButton.PerformClick();
                    break;

                default:
                    informationToolStripButton.PerformClick();
                    break;
                }
            }
        }
 private void Skip(int selectedIndex)
 {
     toolStripContainer.ContentPanel.Controls.Clear();
     Download download;
     if (Core.DownloadsAndQueue.TryGetValue(((RandomTag<string>)m_DataGridView.Rows[selectedIndex].Tag).Tag, out download))
     {
         if (m_InformationControl != null)
             m_InformationControl.Dispose();
         m_InformationControl = new DownloadInformationControl(download);
         m_InformationControl.Dock = DockStyle.Fill;
         if (m_SourcesControl != null)
             m_SourcesControl.Dispose();
         m_SourcesControl = new DownloadSourcesControl(download);
         m_SourcesControl.Dock = DockStyle.Fill;
         switch (Settings.Instance["DownloadInformationDialogLastTab"])
         {
             case "1":
                 sourcesToolStripButton.PerformClick();
                 break;
             default:
                 informationToolStripButton.PerformClick();
                 break;
         }
     }
 }