private void CoverSheetlistBox_SelectedIndexChanged(object sender, EventArgs e) { if (CoverSheetlistBox.SelectedIndex != -1) { string filepath = MyPlugin.GetRoot() + @"Blocks\Cover Sheet Logos\" + SelectedBorderSize + @"\" + CoverSheetlistBox.SelectedItem; GeneralMenu.AcadIconPreview(filepath, CoverSheetPictureBox); } else { CoverSheetPictureBox.Image = null; CoverSheetPictureBox.Invalidate(); } }
private void CoverSheetCheckBox_CheckedChanged(object sender, EventArgs e) { if (CoverSheetCheckBox.Checked) { this.Height = 450; CoverSheetlistBox.Visible = true; CoverSheetPictureBox.Visible = true; label5.Visible = true; label6.Visible = true; PopulateCoverSheet(); } else { this.Height = 250; CoverSheetPictureBox.Image = null; CoverSheetPictureBox.Invalidate(); CoverSheetlistBox.Visible = false; CoverSheetPictureBox.Visible = false; label5.Visible = false; label6.Visible = false; } }