private void Skip(int selectedIndex) { toolStripContainer.ContentPanel.Controls.Clear(); if (Core.SharedFiles.ContainsKey(((RandomTag <string>)m_DataGridView.Rows[selectedIndex].Tag).Tag)) { SharedFile sharedFile = Core.SharedFiles[((RandomTag <string>)m_DataGridView.Rows[selectedIndex].Tag).Tag]; if (m_InformationControl != null) { m_InformationControl.Dispose(); } m_InformationControl = new SharedFileInformationControl(sharedFile); m_InformationControl.Dock = DockStyle.Fill; informationToolStripButton.PerformClick(); } }
private void Skip(int selectedIndex) { toolStripContainer.ContentPanel.Controls.Clear(); if (Core.SharedFiles.ContainsKey(((RandomTag<string>)m_DataGridView.Rows[selectedIndex].Tag).Tag)) { SharedFile sharedFile = Core.SharedFiles[((RandomTag<string>)m_DataGridView.Rows[selectedIndex].Tag).Tag]; if (m_InformationControl != null) m_InformationControl.Dispose(); m_InformationControl = new SharedFileInformationControl(sharedFile); m_InformationControl.Dock = DockStyle.Fill; informationToolStripButton.PerformClick(); } }