private void showPlatformsListToolStripMenuItem_Click(object sender, EventArgs e) { try { dataGridViewPlatforms.Visible = showPlatformsListToolStripMenuItem.Checked; if (updating) { return; } ConfigBusiness.SetElementVisibility(Column.PlatformsList, dataGridViewPlatforms.Visible); } catch (OperationCanceledException ioex) { return; } catch (Exception ex) { FormCustomMessage.ShowError(ex.Message); } }
private void ToolStripMenuItemShowPlatformColumn_CheckedChanged(object sender, EventArgs e) { try { columnPlatform.Visible = showPlatformColumnToolStripMenuItem.Checked; if (updating) { return; } ConfigBusiness.SetElementVisibility(Column.ColumnPlatform, columnPlatform.Visible); } catch (OperationCanceledException ioex) { return; } catch (Exception ex) { FormCustomMessage.ShowError(ex.Message); } }
private void showYearReleasedColumnToolStripMenuItem_Click(object sender, EventArgs e) { try { columnYearReleased.Visible = showYearReleasedColumnToolStripMenuItem.Checked; if (updating) { return; } ConfigBusiness.SetElementVisibility(Column.ColumnYearReleased, columnYearReleased.Visible); } catch (OperationCanceledException ioex) { return; } catch (Exception ex) { FormCustomMessage.ShowError(ex.Message); } }
private void showGameplayArtToolStripMenuItem_Click(object sender, EventArgs e) { try { if (!pictureBoxGameplay.Visible && showGameplayArtToolStripMenuItem.Checked) { flowLayoutPanelPictures.Visible = true; } pictureBoxGameplay.Visible = showGameplayArtToolStripMenuItem.Checked; ConfigBusiness.SetElementVisibility(Column.GameplayArt, pictureBoxGameplay.Visible); flowLayoutPanelPictures.Visible = pictureBoxBoxart.Visible || pictureBoxTitle.Visible || pictureBoxGameplay.Visible; FormMain_ResizeEnd(sender, e); } catch (OperationCanceledException ioex) { return; } catch (Exception ex) { FormCustomMessage.ShowError(ex.Message); } }