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 LogoListBox_SelectedIndexChanged(object sender, EventArgs e) { if ((string)LogoListBox.SelectedItem != "No Logo") { string filepath = MyPlugin.GetRoot() + @"Blocks\Logos\" + SelectedBorderSize + @"\" + LogoListBox.SelectedItem; GeneralMenu.AcadIconPreview(filepath, LogoPictureBox); } else { LogoPictureBox.Image = null; LogoPictureBox.Invalidate(); } }
private void LogoListBox_SelectedIndexChanged(object sender, EventArgs e) { string filepath = MyPlugin.GetRoot() + @"Blocks\Logos\" + SelectedBorderSize + @"\" + LogoListBox.SelectedItem; GeneralMenu.AcadIconPreview(filepath, LogoPictureBox); }